Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 576
0 Users 4 Guests Online
Forum Index » PHP + MySQL » headers already sent?
Posted on Sunday 1st June 2008 at 04:17 PM
Adam981
templates/default/images/noavatar.png's Avatar
Junior Member
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/zymichost.com/c/r/y/crystal/htdocs/layout.php:5) in /www/zymichost.com/c/r/y/crystal/htdocs/login.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/zymichost.com/c/r/y/crystal/htdocs/layout.php:5) in /www/zymichost.com/c/r/y/crystal/htdocs/login.php on line 2

Well i just made a new layout and when i go to use the login that alrady worked i get this error.. im use a php navagation system (switch) so when i go to ?page=login i get that error.
Posted on Sunday 1st June 2008 at 04:43 PM
ShadowMage
templates/default/images/noavatar.png's Avatar
Senior Member
session_start(); is on the same page twice or something like that.
Posted on Sunday 1st June 2008 at 04:46 PM
Adam981
templates/default/images/noavatar.png's Avatar
Junior Member
Ive looked and only place i have session_start(); is on login and config, but thats what the tut for usersystem says to do.. if i remove them then the login doesnt log me in.
Posted on Sunday 1st June 2008 at 04:52 PM
ShadowMage
templates/default/images/noavatar.png's Avatar
Senior Member
Weird. if its on config file then i wouldn't think you have to have it on the login file. At least, works for me that way.
Posted on Sunday 1st June 2008 at 04:53 PM
Adam981
templates/default/images/noavatar.png's Avatar
Junior Member
I'll give it a try maybe u can come on MSN if u have a few mins?
Posted on Sunday 1st June 2008 at 05:34 PM
Adam981
templates/default/images/noavatar.png's Avatar
Junior Member
Sigh, still no luck :(
Posted on Friday 6th June 2008 at 06:56 AM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
Only need it in config. Remove it from the login page.
Reply soon xD
Posted on Monday 9th June 2008 at 11:15 PM
Adam981
templates/default/images/noavatar.png's Avatar
Junior Member
haha yeah i figured it out and forgot about my post :(