How to enable session support in PHP

The session support can be turned on automatically at the site level, or manually in each PHP page script:

  • Turning on session support automatically at the site level can be done by setting session.auto_start = 1 in php.ini.
  • Turning on session support manually in each page script can be done by calling session_start() funtion.
Share Article/Example:
  • DotNetKicks
  • DZone
  • StumbleUpon
  • Print
  • Add to favorites
  • Digg
  • del.icio.us
  • Twitter
  • Facebook
  • LinkedIn
  • Posterous
  • Slashdot

 

 
eXTReMe Tracker