Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Warning Session_Start
Old 10-24-2007, 12:46 AM Warning Session_Start
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
Error:
Code:
b>Warning</b>:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\finalproject\inc\header.php:1)
Lines 1 & 2 of header.php
PHP Code:
<title><?php
session_start
();
And the last part says line 2 of header.php , and this is were it gets confusing. o.O theres only 2 lines, and no white space, as that seems to cause the problems with this method...(or from what i've read) and I can't seen to figure out the problem.

Any responses are greatly appreciated thanks.

Never mind - Solved it :P i'm retarded, just forgot that you have to start the session first Y_Y.
__________________
"Good News Everyone, by reading this your hearing my voice."

Last edited by Red_X_; 10-24-2007 at 12:52 AM.. Reason: Solved.
Red_X_ is offline
Reply With Quote
View Public Profile Visit Red_X_'s homepage!
 
 
Register now for full access!
Old 10-24-2007, 03:19 AM Re: Warning Session_Start
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by Red_X_ View Post
Never mind - Solved it :P i'm retarded, just forgot that you have to start the session first Y_Y.
Yeah, always make sure you start your session before you send any headers. Generally, if you are going to start a session it should be the first line of code in your file. Good job figuring it out on your own.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 10-24-2007, 12:23 PM Re: Warning Session_Start
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
Juat to add: session_start() should just be the first thing, before any "headers" - before any HTML. Obviously it's going to be after the <?php
. I just wanted to say that because I once had a nasty problem which later turned out to be whitespace in front of that. If I remember correctly, that is.
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Reply     « Reply to Warning Session_Start
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11958 seconds with 12 queries