you might wanna check if register global is turned on or off. Naintara Jain wrote: > One thing I forgot to mention is that the same code works perfectly on the > web server (running on Apache and a Unix flavor). > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > t]On Behalf Of Naintara Jain > Sent: Saturday, July 06, 2002 6:09 PM > To: Php-General@Lists. Php. Net > Subject: [PHP] session problem > > > I am storing some values in session variables. > The behavior of the session is pretty unpredictable. > > On the first page I begin with: > session_name("aname") > session_start() > session_register("var1","var2") > > In another page I check for existing value of session variable "var2". > In the next page I have the following code: > session_name("aname") > session_start() > > if(($var2)=="" || !isset($var2)) > "invalid" > > But the strange thing is that the session value is not accessible in the > other page. > > I have tried passing the session id though session_id() in the URL. > > Session handling has been giving me some trouble (windows 2000, IIS) > The strange thing is that it works some times. > > Can anyone give any pointers? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php