Menu
Hi, I have a question about $_SESSION, I have a simple code like this:
[code]
session_start();
$_SESSION[counter’]=1;
/* do something…*/
$_SESSION[counter’]+=1;
/* do something…*/
$_SESSION[counter’]+=1;
/* do something…*/
$_SESSION[counter’]+=1;
/* do something…*/
The last $_SESSION[counter’] is 4,
Now if I reload the page, does the $$_SESSION[counter’] stay in 4 or will it start from 1 again? Thanks