brown2005 Posted August 17, 2006 Share Posted August 17, 2006 should i havesession_start();at the top of every page.. Link to comment https://forums.phpfreaks.com/topic/17849-session_start/ Share on other sites More sharing options...
trq Posted August 17, 2006 Share Posted August 17, 2006 If you plan on using session in every page. Link to comment https://forums.phpfreaks.com/topic/17849-session_start/#findComment-76242 Share on other sites More sharing options...
wildteen88 Posted August 17, 2006 Share Posted August 17, 2006 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 [b]session.auto_start[/b] directive. Link to comment https://forums.phpfreaks.com/topic/17849-session_start/#findComment-76260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.