- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- Should all my pages have session start(); ?
httpwebwitch - 7:16 pm on May 3, 2012 (gmt 0)
you need to call session_start() if your code uses the $_SESSION superglobal variable.
If you don't see $_SESSION used anywhere in the code, then you don't need to call session_start().
Thread source: http://www.webmasterworld.com/php/4448994.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com