brown2005 Posted August 17, 2006 Share Posted August 17, 2006 should i havesession_start();at the top of every page.. Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/17849-session_start/#findComment-76260 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.