Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Can variables be shared across sessions?
September 30, 2005, 7:04 pm
rate this thread
Another newbie question. I have a small website working via php and all is
fine, but I wanted to add some new features and was wondering if php allows
for variables to be seen by multiple sessions, ie a user viewing the web
site on one machine can see variables created by another users session. Is
that what $_SERVER is for, or am I going to be better of creating a single
entry table in mySQL that has a field for each global variable?
Re: Can variables be shared across sessions?
$_SERVER does not do this; it contains various bits of request information,
but does not persist between requests.
A database would be an appropriate choice for this.
Andy Hassall :: email@example.com :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum