aspose file tools*
The moose likes Tomcat and the fly likes JDBC realm with Sessions please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JDBC realm with Sessions please help" Watch "JDBC realm with Sessions please help" New topic
Author

JDBC realm with Sessions please help

Prem Khan
Ranch Hand

Joined: May 30, 2005
Posts: 189
I have a tomcat server with jdbc realm for security. When my session exspires or the user has to log in again, all my sessions are messed up and bad data shows on my forms that I have no idea why its there.

i have an if session.isNew() redirect to the start page, but the problem is that when a page is requested, my jdbc realm kicks in and makes a session for logging in so, all my session data is lost, and still is not new so it displays a page it should not.

any ideas ? Is is the session expiring the event that triggers a new jdbc realm log in ?
Prem Khan
Ranch Hand

Joined: May 30, 2005
Posts: 189
I found a work around, thanks anyways
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC realm with Sessions please help