This must then be related to the session-timeout problem I am facing. This is what is happening:
When my Session - currently set to 1 minute in web.xml - times-out clicking on any LINK automatically redirects me to the Login Page. On re-logging in, through the logs I am observing that it is not going to the LoggingAction Class but directly to the Link that was clicked. But the problem is in my LoggingAction I set a number of Session Variables such as "principalInSession" which are referenced by the pages This session attribute "principalInSession" remains "null" and hence I get a NullPointerException. The surprising thing is that on Time-out if I refresh the page and then redirected to the Login-page, the above problem doesn't occur i.e it goes to the LoggingAction class and everything is normal. Thanks for all your help. Chetan -----Original Message----- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 11:52 AM To: Tomcat Users List Subject: Re: Session Creation in Tomcat Chetan Pandey wrote: > I am also using Formm-based JDBC-JNDI Realm based Authentication. > So can anyone pls clarify if the session is supposed to be created when we > l;aunch the URL or session is supposed to be created when the User logs in. FORM authentication requires a session so one gets created as soon as you request a protected page, ie before the user has actually logged in. Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]