aspose file tools*
The moose likes Servlets and the fly likes How to Ensure Session Created with Login Name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to Ensure Session Created with Login Name" Watch "How to Ensure Session Created with Login Name" New topic
Author

How to Ensure Session Created with Login Name

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
Hi all,

I am using FORM based declarative authentication. I was told that whether or not a session is automatcially created after a success login is container specific. In that case, is there any good strategy to manually enforce the creation of session containing the username right after user login ?

Thx for your advice.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Not necessarily the most efficient but pretty easy is to use a filter to detect requests from logged in users and then create a session and attach the user if is not already there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Ensure Session Created with Login Name