Results 1 to 5 of 5

Thread: Logout Automatically

  1. #1
    Join Date
    Apr 2009
    Posts
    15

    Default Logout Automatically

    If the use not working for 15 mins, then the session should expiry and logout aoutmatically or it should ask relogin... Can any one suggect for this...
    Vijai

  2. #2

    Default

    Take a look at <session-config> in web.xml to control a user session time-out.

    note this is a Java EE standard, not Spring Security.

  3. #3
    Join Date
    Apr 2009
    Posts
    15

    Default

    I have added the <session-config> in web.xml file... I am getting the following error... <session-config> element is limited to 1 occurance

    I have searched in net they told me to add <login-config> and <jsp-config>, i added that but its not working... CAn u give me some idea pls... I need add any other configuration...
    Vijai

  4. #4

    Default

    <login-config> and <jsp-config>
    Those are other web.xml elements that has nothing to do with session management.
    <session-config> element is limited to 1 occurance
    Most likely you already have one in your web.xml

    <session-config> looks something like this:
    Code:
    <web-app ...>
    ....
    <session-config>
            <session-timeout>
                30 <!-- session times out in 30 minutes -->
            </session-timeout>
    </session-config>
    ....
    </web-app>

  5. #5
    Join Date
    Apr 2009
    Posts
    15

    Default

    Ya Already i have one <session-config>. Thanks a lot dude...
    Vijai

Posting Permissions

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