Problem using session

From: Date: Tue, 28 Aug 2001 11:43:05 +0000
Subject: Problem using session
Groups: php.general 
Request: Send a blank email to php-general+get-64763@lists.php.net to get a copy of this message
Hi, I'm creating system with user registration. I want to use sessions without cookies. My cookies are disabled. this is my login.php: global $curusr, $curpass, $registered; if (lExistUser( $usr, $pwd ) == false ) // is user exist ? { echo $usr . $pwd; echo " - Error"; session_destroy(); $curusr=""; $curpass=""; $registered=false; exit; } // all ok ! user Exist $curusr=$usr; $curpass=$pwd; $registered=true; session_start(); session_register(curusr, curpass, registered ); $web="http://www.somedomain.com"; // my site header("Location: $web"); exit; But when I get control in my index.php there are no the variables. Any ideas why ? Thanks, Rosen Marinov

« previous php.general (#64763) next »