setting Session expiry time in websphere.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumittyagi
    Recognized Expert New Member
    • Mar 2007
    • 202

    #1

    setting Session expiry time in websphere.

    I am using websphere 5.1 and I want to set session timeout for my application.

    Now I know two ways of setting it (declaratively and programmaticall y).
    * declaratively in web.xml of the application in session-cofig element.
    * programatically by session.setMaxI nactiveInterval ().

    Now I wanted to know two things.
    1. If there exists any other way of setting session time out as well.
    2. If I do not set my session timeout then what is the default session time out for my application.

    Thank you in advance for any help.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sumittyagi
    I am using websphere 5.1 and I want to set session timeout for my application.

    Now I know two ways of setting it (declaratively and programmaticall y).
    * declaratively in web.xml of the application in session-cofig element.
    * programatically by session.setMaxI nactiveInterval ().

    Now I wanted to know two things.
    1. If there exists any other way of setting session time out as well.
    2. If I do not set my session timeout then what is the default session time out for my application.

    Thank you in advance for any help.
    The default timeout depends on the engine you're using and is the one returned when you call session.getMaxI nactiveInterval () before you set your own interval.
    Those are the only ways that I know of changing that time.

    Comment

    • sumittyagi
      Recognized Expert New Member
      • Mar 2007
      • 202

      #3
      Originally posted by r035198x
      The default timeout depends on the engine you're using and is the one returned when you call session.getMaxI nactiveInterval () before you set your own interval.
      Those are the only ways that I know of changing that time.
      Thank you r035198x for your reply.
      I thaught there might be any way to set that time from any sever specific file, that represents server settings (server.xml or something like that).

      But even if it exists, I think session-config is better way of setting that time, as sessions are specific to web-apps.

      But if it exist, then it would be exciting to know ;-)

      Comment

      Working...