Re: session question
| From: | Alain Roger | Date: | Mon, 05 Mar 2007 19:05:56 +0000 |
| Subject: | Re: session question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249892@lists.php.net to get a copy of this message | ||
the index.php page is the first page where user should logon.
it consists of 3 flags (english, french and slovak).
when use click on 1 flags, it reload the "index.php" page and changes the
login and password words by their relative translation into the flag country
selected.
if user click on LOGON button, therefore it calls the checklogin.php page
and ONLY if login and password are correct, the session is created by
session_start(); command.
I've read the $_SESSION array is available even if the session_start()
command has not been used.
but they told that variable stored in $_SESSION are not available to user
till session_start() has not been used...
in my case, they are available... :-(
Al
On 3/5/07, Ólafur Waage <olafurw@gmail.com> wrote:
I have an "index.php" page which does not user session_start(); command. However in this " index.php" page, there are some $_SESSION['...']; variables stored. How is it possible that $_SESSION['...']; works even if no session has been created before ? If the page is redirected to from some other place? - Ólafur W-- Alain ------------------------------------ Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5