Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
Post Description: help: error warning: session_start(): cannot send session cache limiter
help, error, warning, session, start, cannot, send, session, cache, limiter
This Post Has Been Viewed 157 Times Since Fri Feb 29, 2008 12:01 pm Posted By john607 with 11 replies
POST# 318
Posted On: Fri Feb 29, 2008 12:01 pm
Topic: Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
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?
Thu Jul 20, 2006 1:15 pm
1
webune support
Reply #886
Can you please provide a copy of your code. Particularly the first 25 lines of code
Thanks
Thu Jul 20, 2006 1:20 pm
2
john607
Reply #887
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");
Thu Jul 20, 2006 1:22 pm
3
webune support
Reply #888
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.
Thu Jul 20, 2006 1:26 pm
4
john607
Reply #889
: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!!!
Thu May 17, 2007 7:21 pm
5
makali
Reply #890
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.
Tue Apr 22, 2008 9:48 am
6
tencho
Reply #1914
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!
Tue Apr 22, 2008 12:27 pm
7
Web Hosting Support
Reply #1915
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.
Thu May 15, 2008 9:25 am
8
alex
Reply #2028
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
Sat May 17, 2008 7:15 am
9
alex
Reply #2029
thank you for your help, i got it now. i was able to fix it, you were right
Sat May 24, 2008 5:14 pm
10
Mary
Reply #2037
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
Wed Jul 23, 2008 4:26 pm
11
sunny
Reply #2104
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?
Related
- Help: Error Warning: Session_start(): Cannot Send Session Cache Limiter
- Enable And Or Disable Register_globals In Apache Server