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 #174741 is a reply to message #174737] Fri, 01 July 2011 11:50 Go to previous messageGo to previous message
dougatmilmacdotcom is currently offline  dougatmilmacdotcom
Messages: 24
Registered: May 2011
Karma:
Junior Member
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.
[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:34 GMT 2024

Total time taken to generate the page: 0.03586 seconds