FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to unset session variable when leaving page
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to unset session variable when leaving page [message #174745 is a reply to message #174741] Fri, 01 July 2011 21:58 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On Fri, 01 Jul 2011 11:50:04 GMT, Doug Miller wrote:

> In article
> <57e91bee-b606-473f-8ba8-020927f01a53(at)d1g2000yqm(dot)googlegroups(dot)com>,
> Martin <warwound(at)gmail(dot)com> wrote:
>
>> On Jun 27, 7:48=A0pm, Co <vonclausow...@gmail.com> wrote:
>
> [...]
>
>>> Is it possible to clear the session var when leaving the page?
>>
>> I've had to do this before and simply added a body onunload event
>> listener to the page:
>>
>> <body onunload="clearSession()">
>>
>> Calls a javascript function:
>
> Which obviously doesn't work _at all_ if the visitor's browser has
> javascript disabled.

Or crashes.

--
86. I will make sure that my doomsday device is up to code and properly
grounded.
--Peter Anspach's list of things to do as an Evil Overlord
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: debugging with NetBeans
Next Topic: barcode reader integration in web application
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 07 08:32:08 GMT 2024

Total time taken to generate the page: 0.04123 seconds