Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2424
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Peter H. Coffin" <hellsop@ninehells.com> |
| Newsgroups | comp.lang.php |
| Subject | Re: how to unset session variable when leaving page |
| Date | Fri, 1 Jul 2011 16:58:15 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 28 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="le/2G4+BNpieVhQI6uJ2Lw"; logging-data="31080"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9nzX+HZQeCNjemZBadpkg" |
| User-Agent | slrn/0.9.9p1 (OpenBSD) |
| Cancel-Lock | sha1:GRwW7sUYaobVPl3gi9z0swUgNMw= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:2424 |
Show key headers only | 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
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