Jump to content


Photo

session_start();


  • Please log in to reply
2 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 17 August 2006 - 02:54 PM

should i have

session_start();

at the top of every page..

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 August 2006 - 02:56 PM

If you plan on using session in every page.

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 August 2006 - 03:12 PM

Yes you must state session_start(); as the first line in every page (not files by pages) the user visits that has a session. Otherwise your session variables wont work. Unless you have PHP configured to start a session automatically via the session.auto_start directive.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users