php session problem -


I think this code should be "first" echo in the first experiment and after refreshing it should be timestamp echo, But it will show first

  if (isset ($ _ session ['test session']) {echo ($ _SESSION ['TestSession']);} Else {resonant "before"; $ _SESSION ['Test session'] = time ();}    

have you kept < / P>

  session_start ();   

at the top of your page?

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -