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






Reply via email to