Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 27th, 2005, 03:37 PM
Registered User
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to khile
Default Warning: session_start():

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

Old July 27th, 2005, 08:51 PM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

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.



Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Old July 28th, 2005, 09:04 AM
Registered User
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to khile

Hi i have tryed is it possible you can help me via msn or something
MSN: khile@hotmail.co.uk


Old August 16th, 2005, 04:09 AM
Authorized User
Join Date: Feb 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

please use session_start() in the begining of program
your source code

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: session_start(): tanybrw989 Beginning PHP 9 May 10th, 2009 06:16 PM
session_start() changusee2k PHP How-To 2 February 11th, 2006 05:32 AM
Problem with Session_Start() jmrdeuce32 PHP How-To 2 April 29th, 2005 12:32 AM
Session_Start fires twice!!? Dmitriy Pro VB 6 1 March 17th, 2005 12:59 PM
session_start() problem cfemocha BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 September 28th, 2004 08:44 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.