...

View Full Version : Warning: session_start()



pphpnewbie
01-13-2010, 10:13 AM
I am trying out php/mysql. I not sure why this message appear -

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\ToySales_Add.php:81) in D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\includes\restrictaccess.php on line 3

Would appreciate any help to resolve it.
Thanks in advanced.

oesxyl
01-13-2010, 10:23 AM
I am trying out php/mysql. I not sure why this message appear -

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\ToySales_Add.php:81) in D:\vhosts\toy4sales.com\subdomains\bells\httpdocs\includes\restrictaccess.php on line 3

Would appreciate any help to resolve it.
Thanks in advanced.
you display, echo or print, something before session_start.

btw, how you want to help you when you don't post some code?

if don't have any output before session start, add a line with session_cache_limiter before:
http://www.php.net/manual/en/function.session-cache-limiter.php

best regards

pphpnewbie
01-13-2010, 10:42 AM
Sorry I'm still toying with the page. I move this script - restrictaccess to the top of the page and the problem gone.
Thanks.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum