Results 1 to 4 of 4

Thread: Problem with session when change server name for ip

  1. #1
    Join Date
    Sep 2009
    Posts
    2

    Default 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. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    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.
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    Sep 2009
    Posts
    2

    Default

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

  4. #4
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    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.
    Spring - by Pivotal
    twitter @tekul

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •