Php session
Posted: Tue Apr 27, 2010 3:16 am
I am getting the following error on all the rendered pages on my localhost:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /..../php/index.php:19) in /...../session.php on line 5
I have exactly the same code on my server and it works fine there.
On my local host I have LinuxMint installed and CentOS on my server.
I am defining the session functions from a common session.php file and calling it in the index.php by creating its objects.
I have searched about this issue in multiple forums online, and standard solution seems to be to remove the white spaces, which is not an issue here.
Have any of you faced a similar issue and how did you resolve it?
Thank You.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /..../php/index.php:19) in /...../session.php on line 5
I have exactly the same code on my server and it works fine there.
On my local host I have LinuxMint installed and CentOS on my server.
I am defining the session functions from a common session.php file and calling it in the index.php by creating its objects.
I have searched about this issue in multiple forums online, and standard solution seems to be to remove the white spaces, which is not an issue here.
Have any of you faced a similar issue and how did you resolve it?
Thank You.