Re: Persistent global variable?
- From: Oli Filth <catch@xxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 16:28:56 GMT
David Gillen said the following on 27/09/2006 17:22:
An noise sounding like Oli Filth said:howachen@xxxxxxxxx said the following on 27/09/2006 16:49:Pass the same session id to session_id() after you start the session shouldHi,Sessions.
Are there something like a `Persistent global variable` in PHP?
It is something like `Application` in the classic ASP, all the request
share the same variable, and the die after a timeout.
http://php.net/manual/features.sessions.php
Be aware that sessions are not cross-user though. Each user has their own set of independent persistent variables.
give you the same session for all users. A bit hacky though. If it even works.
Can't see why it wouldn't though.
Of course, that then presents the users from having any "personal" variables at all...
--
Oli
.
- References:
- Persistent global variable?
- From: howachen
- Re: Persistent global variable?
- From: Oli Filth
- Persistent global variable?
- Prev by Date: Re: MySQL Backup Script
- Next by Date: need code snippet to verify input strings
- Previous by thread: Re: Persistent global variable?
- Next by thread: HTTP problem, wrong characters sent (HTTP pro's needed!)
- Index(es):
Relevant Pages
|