Subject: Warning: session_start():
Posted By: khile Post Date: 7/27/2005 3:37:53 PM
i have just programed a site but i keep geting this error

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/khile/domains/flashplastic.com/public_html/index.htm:1) in /home/khile/domains/flashplastic.com/public_html/common.htm on line 1790

What is the problem and how can i solve it

Reply By: richard.york Reply Date: 7/27/2005 8:51:57 PM
session_start() alters the outgoing HTTP headers by including a cookie that contains the session id.  HTTP header modifications can only happen before output (e.g. HTML, and/or whitespace).  So you'll have to move session_start() to happen before script output.

http://www.php.net/session_start

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Reply By: khile Reply Date: 7/28/2005 9:04:42 AM
Hi i have tryed is it possible you can help me via msn or something
MSN: khile@hotmail.co.uk

Thanks

Reply By: webphp Reply Date: 8/16/2005 4:09:30 AM
please use session_start() in the begining of program
<?php
session_start();
..
your source code
..
?>

Go to topic 33867

Return to index page 489
Return to index page 488
Return to index page 487
Return to index page 486
Return to index page 485
Return to index page 484
Return to index page 483
Return to index page 482
Return to index page 481
Return to index page 480