Re: session vars for other session name
| From: | Marek Kilimajer | Date: | Mon, 10 Nov 2003 15:58:48 +0000 |
| Subject: | Re: session vars for other session name | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169042@lists.php.net to get a copy of this message | ||
David T-G wrote:
I'm a bit confused... I haven't tried this yet, so maybe it will all come clear when I do, but I'm still confused! So where I currently have session_name($wfname) ; session_start ; ... I'd instead have session_name($wfname) ; $_COOKIE[$wfname] = $_COOKIE['locscout'] ; session_start ; ... or so. But what does that buy me? How will then setting my password at one level (presentation) also set it at another (gallery)?You will have the same session variables accessible in your script. I forgot to mention you should do the same for $_GET and $_POST if you want it to work without cookies.
TIA & HAND :-D