You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Paul Wallace <pw...@intelematics.com.au> on 2003/08/06 06:00:57 UTC
window close session invalidate
Dear all,
May someone enlighten me on why my session is being invalidated
when I close a browser window? I am doing this in one of two ways - the
application close icon on the top right of the window, or a simple:
<a href="javascript:window.close();">CLOSE</a>
Does anyone have any experience of this? The session is being killed and
thus so is my app. I will submit this query to the user list, but
thought it appropriate for this list as I am getting the same result
from multiple instances of TC on different servers, implying it is not a
configuration issue as first suspected.
Thanks
Paul.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: window close session invalidate
Posted by Jochen Schwörer <j....@web.de>.
i had the same problem with internet explorer. mozilla seems to work
properly.
i tracked the problem down and found out that internet explorer looses
the session cookie when closing the popup browser window.
then i added
<DefaultContext cookies="false" />
to my virtualhost definition in server.xml to disable the session-cookie
mechanism.
after that everything worked fine for me.
remember to encode all urls with response.encodeURL().
jochen schwörer
Wednesday, August 6, 2003, 6:00:57 AM, you wrote:
PW> Dear all,
PW> May someone enlighten me on why my session is being invalidated
PW> when I close a browser window? I am doing this in one of two ways - the
PW> application close icon on the top right of the window, or a simple:
PW> <a href="javascript:window.close();">CLOSE</a>
PW> Does anyone have any experience of this? The session is being killed and
PW> thus so is my app. I will submit this query to the user list, but
PW> thought it appropriate for this list as I am getting the same result
PW> from multiple instances of TC on different servers, implying it is not a
PW> configuration issue as first suspected.
PW> Thanks
PW> Paul.
PW> ---------------------------------------------------------------------
PW> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
PW> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: window close session invalidate
Posted by Jochen Schwörer <j....@web.de>.
i had the same problem with internet explorer. mozilla seems to work
properly.
i tracked the problem down and found out that internet explorer looses
the session cookie when closing the popup browser window.
then i added
<DefaultContext cookies="false" />
to my virtualhost definition in server.xml to disable the session-cookie
mechanism.
after that everything worked fine for me.
remember to encode all urls with response.encodeURL().
jochen schwörer
Wednesday, August 6, 2003, 6:00:57 AM, you wrote:
PW> Dear all,
PW> May someone enlighten me on why my session is being invalidated
PW> when I close a browser window? I am doing this in one of two ways - the
PW> application close icon on the top right of the window, or a simple:
PW> <a href="javascript:window.close();">CLOSE</a>
PW> Does anyone have any experience of this? The session is being killed and
PW> thus so is my app. I will submit this query to the user list, but
PW> thought it appropriate for this list as I am getting the same result
PW> from multiple instances of TC on different servers, implying it is not a
PW> configuration issue as first suspected.
PW> Thanks
PW> Paul.
PW> ---------------------------------------------------------------------
PW> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
PW> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
RE: window close session invalidate
Posted by Filip Hanik <ma...@filip.net>.
That is according to the spec, The session only lives for the time of the
application,closing your browser window, means that you are ending your
application
Filip
> -----Original Message-----
> From: Paul Wallace [mailto:pwallace@intelematics.com.au]
> Sent: Tuesday, August 05, 2003 9:01 PM
> To: Tomcat Developers List
> Subject: window close session invalidate
>
>
> Dear all,
> May someone enlighten me on why my session is being invalidated
> when I close a browser window? I am doing this in one of two ways - the
> application close icon on the top right of the window, or a simple:
>
> <a href="javascript:window.close();">CLOSE</a>
>
> Does anyone have any experience of this? The session is being killed and
> thus so is my app. I will submit this query to the user list, but
> thought it appropriate for this list as I am getting the same result
> from multiple instances of TC on different servers, implying it is not a
> configuration issue as first suspected.
>
> Thanks
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
RE: window close session invalidate
Posted by Filip Hanik <ma...@filip.net>.
That is according to the spec, The session only lives for the time of the
application,closing your browser window, means that you are ending your
application
Filip
> -----Original Message-----
> From: Paul Wallace [mailto:pwallace@intelematics.com.au]
> Sent: Tuesday, August 05, 2003 9:01 PM
> To: Tomcat Developers List
> Subject: window close session invalidate
>
>
> Dear all,
> May someone enlighten me on why my session is being invalidated
> when I close a browser window? I am doing this in one of two ways - the
> application close icon on the top right of the window, or a simple:
>
> <a href="javascript:window.close();">CLOSE</a>
>
> Does anyone have any experience of this? The session is being killed and
> thus so is my app. I will submit this query to the user list, but
> thought it appropriate for this list as I am getting the same result
> from multiple instances of TC on different servers, implying it is not a
> configuration issue as first suspected.
>
> Thanks
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org