Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

session_start();

Recommended Posts

If you plan on using session in every page.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.