You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Syed Kazim Hussain <ka...@qualitycheckinc.com> on 2004/03/12 22:17:30 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Users logs off

Posted by mike barretta <mi...@atthehip.net>.
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" <ka...@qualitycheckinc.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> 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:attar@numetrics.com]
>>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" <ka...@qualitycheckinc.com>
>>To: <st...@jakarta.apache.org>;
>><Op...@lists.sourceforge.net>
>>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: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Users logs off

Posted by atta-ur rehman <at...@numetrics.com>.
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" <ka...@qualitycheckinc.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
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:attar@numetrics.com]
> 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" <ka...@qualitycheckinc.com>
> To: <st...@jakarta.apache.org>;
> <Op...@lists.sourceforge.net>
> 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Users logs off

Posted by Syed Kazim Hussain <ka...@qualitycheckinc.com>.
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:attar@numetrics.com]
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" <ka...@qualitycheckinc.com>
To: <st...@jakarta.apache.org>;
<Op...@lists.sourceforge.net>
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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Users logs off

Posted by atta-ur rehman <at...@numetrics.com>.
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" <ka...@qualitycheckinc.com>
To: <st...@jakarta.apache.org>;
<Op...@lists.sourceforge.net>
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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org