Re: Session Problem, Please Help.....

From: Date: Thu, 02 May 2002 17:07:11 +0000
Subject: Re: Session Problem, Please Help.....
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18949@lists.php.net to get a copy of this message
I believe it's because $CLIENTID is not set at ALL before you register it. (ie, isset($CLIENTID) would fail) Therefore it cannot register the variable...there's nothing for it to register or track. Try... $CLIENTID = ""; session_register("CLIENTID"); $CLIENTID="SOMEVALUE"; ----- Original Message ----- From: "Hayan AL Mamoun" <hayan@ureach.com> To: "PHPList (E-mail)" <php-db@lists.php.net> Sent: Thursday, May 02, 2002 3:15 AM Subject: [PHP-DB] Session Problem, Please Help..... > Dear all, I have a strange problem: > I'm using IIS / WINNT4, PHP4 > Please check these two files: > ------------------------------ > logon.phtml: > <? > session_start(); > session_register("CLIENTID"); > $CLIENTID="SOMEVALUE"; > header("Location: clients/editclient.phtml"); > ?> > ------------------------------ > clients/editclient.phtml: > <? > session_start(); > echo "CLient ID VALUE IS : $CLIENTID"; > ?> > > When I run logon.phtml, it must create a session variable called CLIENTID > and then move to the second page, which displays this variable. > Each time I test this code I start a new instant of the IE and request > logon.phtml (in order to create a new session), but it never works from the > first time, while if I tested it a second time from the same instance of IE > it works???????!!!!! > Please could anyone help, why it dosn't work from the first time????? > > thnkx > Hayan > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#18949) next »