Hello, I am using PHP 4.3.1 with register_global s off.
I want to pass information from one page to another and want to start a
session for this using: session_start() at the beginning of my page
searchresult.ph p
However, I get the following error:
Warning: session_start() [function.sessio n-start]: Cannot send session
cookie - headers already sent by (output started at
/srv/www/htdocs/searchresult.ph p:7) in /srv/www/htdocs/searchresult.ph p
on line 8
Warning: session_start() [function.sessio n-start]: Cannot send session
cache limiter - headers already sent (output started at
/srv/www/htdocs/searchresult.ph p:7) in /srv/www/htdocs/searchresult.ph p
on line 8
A session_ID is created but any $_SESSION['variable'] I define is not
recognised. What am I doing wrong??
Thanks in advance,
Edward
I want to pass information from one page to another and want to start a
session for this using: session_start() at the beginning of my page
searchresult.ph p
However, I get the following error:
Warning: session_start() [function.sessio n-start]: Cannot send session
cookie - headers already sent by (output started at
/srv/www/htdocs/searchresult.ph p:7) in /srv/www/htdocs/searchresult.ph p
on line 8
Warning: session_start() [function.sessio n-start]: Cannot send session
cache limiter - headers already sent (output started at
/srv/www/htdocs/searchresult.ph p:7) in /srv/www/htdocs/searchresult.ph p
on line 8
A session_ID is created but any $_SESSION['variable'] I define is not
recognised. What am I doing wrong??
Thanks in advance,
Edward
Comment