- Forums
- PHP
- Warning: session_start() [function.session-start]: Cannot send session
This Page Contains information about Warning: session_start() [function.session-start]: Cannot send session By web hosting in category PHP with 25 Replies. [1827], Last Updated: Mon Jun 24, 2024
web hosting
Fri Feb 29, 2008
25 Comments
873 Visits
The other day i kept getting this error:
Code:Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/a-header.php:10) in /var/www/header.php on line 26
so to fix it I moved the session_start() function from line 26 to line 2 on my header.php file.
That fixed it.
I am posting here just incase anyone else is getting it..
If you have benefited from this post, wallpaperama would appreciate a link back to wallpaperama.com - Thanks
warning: session_start() [function.session-start]: cannot send session cookie - headers already sent by (output started at e:xampplitehtdocscityindex.php:1) in e:xampplitehtdocscityindex.php on line 2
nothing previous to session_start except php tag
if you have any suggestion
thanks alot
https://www.webune.com/forums/warning-session-start-functionsession-start-cannot-send-session-t416.html