Announcement Announcement Module
Collapse
No announcement yet.
Problem with session when change server name for ip Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with session when change server name for ip

    Hello, I have been dealing with a session problem. If I login to my web application putting the URL like this "http://localhost:8080..." all works fine. Once Spring Security authenticate user and password and redirect to index.jsp and i change the URL server name (i put 127.0.0.1 against localhost), spring security invalidates session and appears the login page again.

    can i put something in theconfiguration xml file to solve this issue and makes session does not invalidate ?

  • #2
    spring security invalidates session and appears the login page again
    Spring Security doesn't invalidate the session unless you logout.

    Most likely your browser isn't sending the session cookie because the URL has changed.

    Comment


    • #3
      and.... do you have any idea how i can solve this problem?

      Comment


      • #4
        Why is it a problem? i.e. why are you changing the URL?

        It's a fundamental browser security issue and there's nothing you can do to change it.

        Comment

        Working...
        X