RE: Re: header-session problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are saying that session can not persist over different pages?

-----Original Message-----
From: Alan McDonald
To: php-windows@xxxxxxxxxxxxx
Sent: 2004-02-16 10:57
Subject:  Re: header-session problem

I'm afraid that's not what the seesion is all about.
The session is a unique value. It is assigned to a cookie if specified
in php.ini or is tagged along in all your URLs as a query string or $_GET
and has the name PHPSESSID by default unless you change it.
If you want to save something fro page 1 and retrieve it in page 3, then
you will need to do the same hing and store this value as a cookie.
$_COOKIE['cookiename'] will retrieve it.
But there are some provisos. You cannot assign a cookie value and set
header("Location.. etc on the same page, the cookie will not be set. You
need to set a cookie and let the page return to the browser.
That's with Windows environments anyway.

Alan

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux