Jump to content

[SOLVED] Warring error with session


TheJoey

Recommended Posts

im getting this error

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampplite\htdocs\mellow-yellow\sub_direct\cart.php:41) in C:\xampplite\htdocs\mellow-yellow\sub_direct\cartinc.php on line 6

 

session_start();

this is line 6. i think the session is still continuing from my login.

Link to comment
https://forums.phpfreaks.com/topic/174216-solved-warring-error-with-session/
Share on other sites

Hi TheJoey,

 

session_start needs to be called (ideally first) but certainly before anything is output to the browser.

 

See http://us3.php.net/manual/en/function.session-start.php for further information.

 

Move the session_start function to the top of the file and it should resolve this problem.

 

Hope this helps.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.