Sessions

From: Date: Wed, 25 Apr 2001 08:41:08 +0000
Subject: Sessions
Groups: php.windows 
Request: Send a blank email to php-windows+get-7039@lists.php.net to get a copy of this message
I use Apache server with PHP 4 installed on WinNT 4.0, session.use_trans_sid is set to 1, I don't use cookies. I have three pages, each looks like this: // test1.php <? require("../php/checkuser.php"); print("Logged user: " . @$LoggedUserName . "<BR><BR>\n"); print("<FORM action=\"../php/test2.php\" method=\"post\">\n"); // second page has action="/php/test3.php" and so on... print("<INPUT type=\"submit\" name=\"Modify\" value=\"Next >>\">\n"); print("</FORM>\n"); ?> Script "checkuser.php" simply calls "session_start()" and then check if variable 'LoggedUserName' isn't empty - in such case user is redirected to login page. Firts of these pages (test1.php) is called from main menu after successfull login. Everything works fine: on first and second page SID is properly propagated but on third page script 'checkuser.php' ALWAYS redirects me to login again. Is it possible that session ID becomes invalid after third page (menu -> test1 -> test2 -> ... )?! Had anyone similar problem? Regards Roman Lichszteld rlich@ps.pl RLichszteld@interia.pl

« previous php.windows (#7039) next »