Session Error...?

A

Anonymous

Guest
I'm having problem with sessions, does anyone know of a very descriptive tutorial? I get these errors trying to start sessions, yet there are no "header()" functions being called.

Code:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cso/webspace/templates/functions.php:41) in /home/cso/webspace/user_login.php on line 19

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cso/webspace/templates/functions.php:41) in /home/cso/webspace/user_login.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/cso/webspace/templates/functions.php:41) in /home/cso/webspace/user_login.php on line 22
 
any session info MUST be placed BEFORE any information is sent to the users web browser.

Your error says that something is being sent to the browser on line 41 of "functions.php" - this will cause an error with sessions unless the session comes before this information...

Regards,
Andrew
 
OH... oops...yea it's at the bottom... It's the same deal with header() huh?
 
Back
Top