Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

sessions: Cannot send session cache limiter

mysqli session cache

  • Please log in to reply
3 replies to this topic

#1 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 24 November 2009 - 01:12 PM

hi all,
im finally going insane.....
im getting this error everytime i start sessions or set headers:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/footstep/public_html/footsteps.com.eg/backend/database.php:1) in /home/footstep/public_html/footsteps.com.eg/backend/database.php on line 3
-i checked the phpinfo sessions autostart:
Directive	Local Value	Master Value
session.auto_start	Off	Off
i checked the php file for any spaces before "<?php" and after "?>" but there wasnt.
heres the first lines:
<?php 
//print isset($_SESSION);
if( !isset( $_SESSION ) ) { session_start(); }


$base_dir="http://".$_SERVER['HTTP_HOST']."/footsteps";
require_once 'tools/fakemysqli.php';
require_once 'tools/dynlist.php';
-i tried turning off the warnings and using "@" but that was useless , it just made the warnings disappear.

this problem happens when i run the code on the hosting server. i tried the same code on localhost and same php version and its working fine.

btw: this is php4.4.7.
heres the full session directives in phpinfo():
http://forum.codecal...=1&d=1259097111

any help or advice will be really appreciated

Attached Thumbnails

  • phpinfo.jpg

  • 0
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#2 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 24 November 2009 - 01:16 PM

it said that output already sent from file database.php line 1. check so you don't have a space or something before <?php in that file.
  • 0

I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.


#3 amrosama

amrosama

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 2765 posts

Posted 24 November 2009 - 01:26 PM

thnx Orjan for your reply
theres nothing before <?php tag
ive got it fixed now, you wont believe how it got fixed.....
-i created a text file
-copied the text from the .php file into it
-renamed the text file same as the .php file and replaced it with the one on the server
....and it worked -.-
any idea why?
the old file encoding was utf8 the one i replaced it with is ascii, do you think thats the reason?
  • 0
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#4 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 24 November 2009 - 01:31 PM

yes, it might be the issue.
  • 0

I'm a System developer at XLENT Consultant Group mainly working with SugarCRM.
Please DO NOT send mail or PM to me with programming questions, post them in the appropriate forum instead, where I and others can answer you.






Also tagged with one or more of these keywords: mysqli, session, cache

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download