Any suggestions? -----Original Message----- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 11:34 AM To: Struts Users Mailing List Subject: RE: Ending a Session After Browser Has Gone Away
The web being the stateless environment that it is, you have no way know (without using javascript) that a user has closed a browser. I wouldn't advise to doing this anyway, because the user may have more than one window open, so if they close one of them and try to continue using your site, they will be met (rather rudely) with your login screens. I can't speak for other people, but whenever I'm navigating a site that does a shit job of navigation hierarchy, I always use shift+click if I want to keep the current page and not be sent off deep in the site with no hope of finding the original spot that sent me. If the site did as you propose, this would result in a very pissed off user. And you could bet that you'd hear about it (from me at least). Oh well, that's my 2 cents. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the "Open Minded Developer Network" http://www.open-tools.org/struts-atlanta > -----Original Message----- > From: Cohan, Sean [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 01, 2002 11:06 AM > To: [EMAIL PROTECTED] > Subject: Ending a Session After Browser Has Gone Away > > > Is there a way to end a user session if the browser has closed either > through user action or non-user actions such as power outages? > If not, what > are typical ways to get around this? We are talking about > allowing the user > to login again, checking for a current user session, and if they have one, > killing it and starting a new one. Is this a sound approach? Thanks. > > > Sean Cohan > Software Performance Systems > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>