PHP Session Problem
If you wrote websites in PHP, you would very likely be using PHP Session. Using PHP session allows you to preserve certain data across subsequent accesses. Visitor of your site would be assigned a unique session id and would be propagated throughout his / her browsing session.
However, a lot of inexperienced PHP programmers would have problems using it. They might find it difficult to carry the session id to the other pages, or simply, no session id assigned.
A quick checklist if you face this issue:
- Make sure <?php session_start(); ?> is at the very first line of the page
- Check your php.ini file and make sure session.use_only_cookies=1
Tags: php, PHP MySQL, php session
This entry was posted on Sunday, August 2nd, 2009 at 5:55 pm and is filed under PHP MySQL. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.







