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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to