• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I am confused about Session Management.
Is it true, that the first time user request a page in an application, web container will create new session for that user?
Can we manage the web container so that it only create session after user invoke login page?
daniel
[ March 19, 2003: Message edited by: Fisher Daniel ]
 
Tom Adams
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your login page is a jsp then you can use the directive to declare that the page does not exist within a session...
<%@ page session="false" %>
The default value for this is true...
 
boyet silverio
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also ... a session starts the first time a user requests a page in an application and the web container needs to remember information (state) about this request. However, if for example a user starts by just browsing one html page to another html page, then such a session is not started as no request info need to be maintained. For the login, if the previous pages browsed were simply html pages, then the session starts when the login entries are submitted since such entries need to be maintained for use in subsequent requests.
[ March 19, 2003: Message edited by: boyet silverio ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic