Jump to content

Error loh with php Session


MemphiS

Recommended Posts

Jul  6 23:47:49 2007] [error] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/main/public_html/index.php:2) in /home/main/public_html/index.php on line 2

[Fri Jul  6 23:47:49 2007] [error] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9 in /home/main/public_html/index.php on line 2

 

 

Anyone know how i can reslove this issue, i had a spam bot looking for directorys and found that this error came up many times.. Nothing seems to be wrong with my code so im not to sure what i should do...

 

Thanks for your responces

Link to comment
Share on other sites

You have some form of output before you call session_start(). There must not be any form of output before you call session_start().

 

Looking at the error PHP has detected that output has started on line 2 in index.php and your session id is invalid.

 

Post index.php here for use to look at. Make sure you post your code within code tags (


).

Link to comment
Share on other sites

hmm weird the onlly thing i have before session_start(); is <?php

 

index looks like below:

<?php
session_start();
require_once("assets/connect.php");
/// rest of login script
?>

 

Starts like that on index,register,lost pass

 

all had the exact same error in the cPanel logs :-\

Link to comment
Share on other sites

Thanks for the help wildteen.. uhm the errror doesnt persist. Ive had some search bot snooping my directory for different programs.. nothing unusal..blocked the ip of the bot.. just wanted to make sure i clear up this error to stop it coming about again..

 

How do i clear the cookies? Wasnt aware that servers had cookies haha :s

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.