Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Management

 
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Hug your destiny! And hug this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic