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 -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -