This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes session management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session management" Watch "session management" New topic

session management

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
If a session expires,is there a way that the Login page can be displayed by default.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

If you are using container managed security this is what will happen when a request is made.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
Container managed security means we provide <security-constraint> in web.xml.

Which tag should we use to specify that Login page must be displayed when session expires.

I agree. Here's the link:
subject: session management
It's not a secret anymore!