you can monitor sessions by writing a session listner that extends javax.http.servlet.HttpSessionListener

also, you'll need to add a descriptor to web.xml:

<listener>
      <listener-class>your.listener</listener-class>
  </listener>

just include some debugs in the sessionCreate() and sessionDestroy and see what's goin on

atta-ur rehman wrote:
Well, if session is not being invalidated then what's the purpose of getting
user logged off? Please look harder! It may not be obvious, but if you're
not getting attribute from session on the exception page that means either
your session has been expired, invalidated or all of its attributes have
been removed before you made it to this page.

ATTA

----- Original Message ----- From: "Syed Kazim Hussain" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 3:03 PM
Subject: RE: Users logs off




Sorry, my mistake, I should have been more descriptive in my problem.

When an exception, e.g. java.sql.SQLException, NullPointerException occurs

:


9i redirects user to Exception Page. On that page, when I check the

session


for its attributes, it doesnt find attributes.

I dont know how the user logs off, there is no log off process, no session
invalidation being done anywhere.


-----Original Message----- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Saturday, March 13, 2004 3:33 AM To: Struts Users Mailing List Subject: Re: Users logs off


Well, Kazim, with this description you can hardly expect to get any help

at


all!

What's logoff process? What's it doing? What's the exception? Is the
underlying code for logoff process a state secret?

ATTA

----- Original Message -----
From: "Syed Kazim Hussain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 1:17 PM
Subject: Users logs off



We are using Opensymphony Sitemesh for presentation layer templating

with


Struts as MVC framework. The application is running perfectly well on

Tomcat


and Orion, but on Oracle 9i, for some strange reason, when an exception
occurs, the User is logged off from the website.

Any suggestions are most welcome !


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to