Jump to content

session_start(); Problems


Taguan

Recommended Posts

We have a site www.buitendegrenzen.be and we wrote it in PHP the inlogscript is whit a session and a cookie .

Last week we transfert to a new hosting and sinds then the inlogscript gives problems.

it gives always an error on the place where i put

session_start();

the error looks like this :

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cybertro/public_html/buitendegrenzen/index.php:17) in /home/cybertro/public_html/buitendegrenzen/index.php on line 18

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cybertro/public_html/buitendegrenzen/index.php:17) in /home/cybertro/public_html/buitendegrenzen/index.php on line 18


I did try manny changes but there is always an error on the place of the session start .

I hope some one can help me !

or some suggestions i can try ...

Thanks
Link to comment
Share on other sites

This has been asked a lot on this board.

Look in the newbie section (and FAQ page).

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=37442\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=37442[/a]
Link to comment
Share on other sites

just sometihnk easy to try before reding all the posts ok.

Always put session_start() at the top of a page and always never have anythink before it.
[code]
<? session_start()





?>
[/code]

If that dont work then please read the above comment as advised.
Link to comment
Share on other sites

I know it has to be on the top of te page and i did put it there for trying .

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cybertro/public_html/buitendegrenzen/index.php:1) in /home/cybertro/public_html/buitendegrenzen/index.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cybertro/public_html/buitendegrenzen/index.php:1) in /home/cybertro/public_html/buitendegrenzen/index.php on line 3



and i dit try

ob_flush();
ob_start();
session_start();

nothing solved the problem

i hope somone can help me .
Link to comment
Share on other sites

[!--quoteo(post=359389:date=Mar 28 2006, 07:28 PM:name=Taguan)--][div class=\'quotetop\']QUOTE(Taguan @ Mar 28 2006, 07:28 PM) [snapback]359389[/snapback][/div][div class=\'quotemain\'][!--quotec--]
i hope somone can help me .
[/quote]

toplay already did.

there's not one single session/header problem that i've not (or anyone else after some careful checks) has not been able to eliminate after carefully following the advice on the link provided.

post your code above and including your 'session_start()' line
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.