session php rand other values -
i have since 2 days same error , dont know how fix that.
if connect first time webside other rand() numbers - reload webside second or third time ...
index.php/
if(!isset($_session)) { session_start(); } require_once('token.php'); var_dump($_session['tok']);
token.php/
if(!isset($_session)) { session_start(); } if(!isset($_session['tok'])) { $_session['tok'] = rand();}
Comments
Post a Comment