Page 2 of 2

Posted: Wed Mar 02, 2005 10:07 am
by feyd
general sesison tips:
  • session_start() must be on all pages where sessions are to be accessed (unless you have auto-start enabled, not likely)
  • session_start() must be called before any output. This includes whitespace (carriage returns, spaces, tabs) any html, output from php.. anything, almost literally.
  • do not use session_register() and related functions if you use $_SESSION
  • you can store session data in the database if that helps... read the Useful Posts thread linked to in my signature for details

Posted: Fri Mar 11, 2005 6:56 am
by robster3uk
I went with the option of just starting a session and just using a session id and store it in the database, that i generate at login. The only problem is that i have to pass it around in every page called while the user is online. It seems to be working anyway so...... Thanks for all your help guys.

:-)