Re: SESSION problem

From: Date: Sat, 16 Aug 2008 11:40:11 +0000
Subject: Re: SESSION problem
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-278217@lists.php.net to get a copy of this message
On 16 Aug 2008, at 12:36, tedd wrote:
At 8:02 PM -0700 8/15/08, VamVan wrote:
Tedd, I think according to PHP manual. Session_start() must be the first line in the code. Dont worry it will remember your session until you close the browser and also it wont duplicate it.
VamVan: Yes, I thought that as well and practiced it for years, but that's not true -- read the manual. In any event, that's not the problem here. The problem here is can I use a variable within a $_SESSION[] declaration? Like so: $_SESSION[$var]
I haven't really been following this thread but using a variable like that is perfectly valid. $_SESSION is no different to any other array during the processing of your script, the only difference is that it's stored between requests. -Stut -- http://stut.net/

« previous php.general (#278217) next »