Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter

RegisterLogin
Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
Post Description: Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
Tags: Help:, Error, Warning:, Session_start():, Cannot, Send, Session, Cache, Limiter
This Post Was Posted On Feb 29, 2008 By john607 #1159
Hi,

I am getting the following error evey time I pull up my webpages

Error Warning: session_start(): Cannot send session cache limiter - headers already sent

Whats going on?
Leave Your Comments
sunny
#1565 1
I was getting the session_start() problem. All I had to do was to eliminate the space before "php-opening" session_start() "php-close" . When I introduced the space before the "php-opening" session_start() "php-close", the warning came back. How wierd. Is is due to a bug?
Jul 23, 2008 Reply Report abuse
Mary
#1560 2
I have been working on adding a login script to my website, but I keep getting this error message, and don't know what to do:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/skaladze/public_html/ge/menu/bible in /home/skaladze/public_html/ge/menu/bible on line 1
May 24, 2008 Reply Report abuse
alex
#1564 3
thank you for your help, i got it now. i was able to fix it, you were right
May 17, 2008 Reply Report abuse
alex
#1561 4
PLEASE HELP! I am getting the following on my webpage and login is being denied too:

Warning: session_start() [function.session-start]: open(/tmp/sess_37df5aa9c11e29d0a4f3cb698 O_RDWR) failed: Permission denied (13) in /home/nigeria/public_html/index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nigeria/public_html/index.php:2) in /home/nigeria/public_html/index.php on line 2

Warning: Unknown: open(/tmp/sess_37df5aa9c11e29d0a4f3cb698 O_RDWR) failed: Permission denied (13) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0
May 15, 2008 Reply Report abuse
Web Hosting Support
#1563 5
that's the beauty about apache web server, its very flexible. you can configure it to your liking. some linux administrators configure their servers differently, there are many option you have with apache, some servers are more secured than others, it all depends what you are using your dedicated server for. its up to you how you want to configure it.
Apr 22, 2008 Reply Report abuse
tencho
#1562 6
The weard thing is that once you create a code that work and after that when you creating sommething else with the same code - it does not work, even on the same server.... I am talking about the sessin_start() function...By the way this topics help me a lot, but i steel don understand why sommetimes it work an dsommetimes you need to put the function in the very beginig...Any way...THANK YOU!
Apr 22, 2008 Reply Report abuse
makali
#1559 7
you should always put session_start(); at the very begining of your code. sometimes if you put it after any other command, you will get this error. so its best that you session_start() right after you start your php. session_start() should be your fist command in your code. try that.
May 17, 2007 Reply Report abuse
john607
#1558 8
:lol: IT WORKED!!!! :lol:

Thanks guys!

I removed the first line before the <?php and it worked great. I am not getting that annoying error anymore. I dont know what happened, my script was working fine, and all of the sudden it stop working and giving me this error message. I must have pressed returned before the <?php. I learned something new today.

Many Thanks for your support Webune!!!
Jul 20, 2006 Reply Report abuse
webune support
#1557 9
We found your problem.



You need to delete the first line right before "<?php" on line 2.

You CANNOT send anything to the browser before the headers. In this case your seesion() function. To fix this error, just delete line 1 entirely.
Jul 20, 2006 Reply Report abuse
john607
#1556 10
This are the first lines of code in my index.php file



     Code:

<?php
########################
# DEFAULT PAGE
########################
if ($pager==""){$pager=135;}

This is the code from my index.php file


########################
# DEFAULT category
########################
if ($category==""){$category=11;}



session_start();
include("system/config.php");
include("databse/dbx.php");
include("includesfiles/functions.php");

include("system/common.php");
include("secured/ip_trck.php");

include("secured/ip_blk.php");
Jul 20, 2006 Reply Report abuse
webune support
#1555 11
Can you please provide a copy of your code. Particularly the first 25 lines of code



Thanks
Jul 20, 2006 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Sun Dec 18, 2011 2:23 pm
Powered by: Webune Forums V3