Jump to content

session_start question


apw

Recommended Posts

Hello

 

I have on my website login page this:

 

Sessionn_start();

if(isset($_session['player']))

{

Session_destroy();

 

Even with the cache cleared im getting cannot send session cache limiter

headers already sent

 

How i fix this?

 

Thanks

Link to comment
Share on other sites

See the sticky: HEADER ERRORS - READ HERE BEFORE POSTING THEM

 

Post your code from the start of the file AND PUT IT IN CODE TAGS

 

Post the ENTIRE error message so we know where to start looking.

 

This statement Sessionn_start(); is completely invalid. It should not start with a capital letter, and it should not have two "n's" in it. If this is the way it is written in your source file, you need to 1) Fix it! and 2) Turn On Error Reporting so you see these errors and can fix them.

 

By the way, Session_destroy(); should not be capitalized, either.

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.