| | |
Warning: session_start() [function.session-start]: Cannot send session cache limiter
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2009
Posts: 3
Reputation:
Solved Threads: 0
Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#1 Aug 14th, 2009
Please help me.
I got this error while uploading in Server. I developed this code in windows based. But the deployed server is Linux Server. In windows server i didn't get this session error.
Here is my code:
Thank you in advance!!!!!!
I got this error while uploading in Server. I developed this code in windows based. But the deployed server is Linux Server. In windows server i didn't get this session error.
Here is my code:
php Syntax (Toggle Plain Text)
<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = $_REQUEST['number']; if($number!=$key) { $message = "Please enter the correct Code!"; } } } <?php } ?>
Thank you in advance!!!!!!
Last edited by peter_budo; Aug 14th, 2009 at 1:10 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#2 Aug 14th, 2009
That last line would have been a real bug. Try the following:
Also make sure l2t_connect.php does not contain session_start(). Good luck.
php Syntax (Toggle Plain Text)
<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = $_REQUEST['number']; if($number!=$key) { $message = "Please enter the correct Code!"; } } }
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. - Oopy Doopy Do 2U2!
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` My favourite PC. - Oopy Doopy Do 2U2!
•
•
Join Date: Aug 2009
Posts: 3
Reputation:
Solved Threads: 0
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#3 Aug 14th, 2009
Thank you for your reply.
But the Same error comes again. This is my Actual coding.
But the Same error comes again. This is my Actual coding.
php Syntax (Toggle Plain Text)
<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = $_REQUEST['number']; if($number!=$key) { $message = "Please enter the correct Code!"; } else { $sqlAdd="INSERT INTO l2t_enquiry (name, email, conno, comment, is_answered, is_deleted) VALUES ( '".$_POST['enq_name']."', '".$_POST['emailid']."', '".$_POST['conno']."', '".$_POST['comments']."', 'true', 'true')"; $resultAdd = mysql_query($sqlAdd); } } } ?>
Last edited by peter_budo; Aug 14th, 2009 at 1:10 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#4 Aug 14th, 2009
Perhaps php short tags might make a difference. Below is an example and I fixed a mysql bug at the same time.
If that doesn't work then make sure there are no spaces/tabs before the <? as that will also cause an error. Also please use code tags like I have above as it make the code so much more readable.
php Syntax (Toggle Plain Text)
<? session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = $_REQUEST['number']; if($number!=$key) { $message = "Please enter the correct Code!"; } else { $sqlAdd="INSERT INTO l2t_enquiry (name, email, conno, comment, is_answered, is_deleted) VALUES ( '". mysql_real_escape_string($_POST['enq_name'])."', '".mysql_real_escape_string($_POST['emailid']). "', '".mysql_real_escape_string($_POST['conno'])."', '".mysql_real_escape_string($_POST['comments']). "', 'true', 'true')"; $resultAdd = mysql_query($sqlAdd); } } } ?>
Try not to bump 10 year old threads as it can be really annoying.
http://syntax.cwarn23.net/
My favourite PC. - Oopy Doopy Do 2U2!
http://syntax.cwarn23.net/
Smilies: ^_* +_+ v_v -_- *~*` My favourite PC. - Oopy Doopy Do 2U2!
![]() |
Similar Threads
- Warning: session_start() [function.session-start]: Cannot send session cache limiter (PHP)
- Warning: session_start() [function.session-start]: Cannot send session cache limiter (PHP)
- Warning: session_start(): Cannot send session cache limiter - headers already sent (PHP)
- session_start() warning is coming???? (PHP)
- Small problem with plaincart php, cache limiter (PHP)
- session variable error (PHP)
Other Threads in the PHP Forum
- Previous Thread: wysiwyg php mysql
- Next Thread: problem with preg_match_all
Views: 544 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cookies cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube






