Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2424

Re: how to unset session variable when leaving page

From "Peter H. Coffin" <hellsop@ninehells.com>
Newsgroups comp.lang.php
Subject Re: how to unset session variable when leaving page
Date 2011-07-01 16:58 -0500
Organization A noiseless patient Spider
Message-ID <slrnj0sgnn.207.hellsop@nibelheim.ninehells.com> (permalink)
References <075a7a75-e93d-4bac-b94f-f336aa7ef1be@d1g2000yqm.googlegroups.com> <57e91bee-b606-473f-8ba8-020927f01a53@d1g2000yqm.googlegroups.com> <iukc9n$v1o$1@dont-email.me>

Show all headers | View raw


On Fri, 01 Jul 2011 11:50:04 GMT, Doug Miller wrote:

> In article
> <57e91bee-b606-473f-8ba8-020927f01a53@d1g2000yqm.googlegroups.com>,
> Martin <warwound@gmail.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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to unset session variable when leaving page Co <vonclausowitz@gmail.com> - 2011-06-27 11:48 -0700
  Re: how to unset session variable when leaving page Martin <warwound@gmail.com> - 2011-06-30 20:41 -0700
    Re: how to unset session variable when leaving page Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-01 05:36 -0400
      Re: how to unset session variable when leaving page Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-07-01 12:00 +0000
        Re: how to unset session variable when leaving page Jerry Stuckle <jstucklex@attglobal.net> - 2011-07-01 12:35 -0400
    Re: how to unset session variable when leaving page dougatmilmacdotcom@example.com (Doug Miller) - 2011-07-01 11:50 +0000
      Re: how to unset session variable when leaving page "Peter H. Coffin" <hellsop@ninehells.com> - 2011-07-01 16:58 -0500
  Re: how to unset session variable when leaving page Martin <warwound@gmail.com> - 2011-07-01 02:01 -0700

csiph-web