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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -