Thread: MySQL/PHP Help
View Single Post
Old October 26th, 2006, 8:29 AM   #4 (permalink)
lust_and_anger
Registered User
Fresh Surpasser
 
lust_and_anger's Avatar
 
Joined in Oct 2006
3 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
An issue you may be having is you're calling session_start() after you've outputted some HTML to the browser. If you're using cookie based sessions (which I'm assuming you are), then the session_start call should be before anything is outputted to the browser. A good way of ensuring this is to make it the very first thing your PHP script does, i.e. removing the session_start call from auth.php and changing the first line of home .php from:

Code:
<?
to

Code:
<?
session_start();
Hope this helps!
lust_and_anger is offline   Reply With Quote
This user thanks lust_and_anger for this great post!
Kayla (October 26th, 2006)