473,473 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Warning: session_start() [function.session-start]: Cannot send session cache limiter

1 New Member
The error I'm getting is

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

------------------------------------------------

line 25 is

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3.  
  4. if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
  5.     function unMagicQuotify($array) {
  6.         $fixed = array();
  7.         foreach ($array as $key=>$val) {
  8.             if (is_array($val)) {
  9.                 $fixed[stripslashes($key)] = unMagicQuotify($val);
  10.             } else {
  11.                 $fixed[stripslashes($key)] = stripslashes($val);
  12.             }
  13.         }
  14.         return $fixed;
  15.     }
  16.  
  17.     $_GET = unMagicQuotify($_GET);
  18.     $_POST = unMagicQuotify($_POST);
  19.     $_COOKIE = unMagicQuotify($_COOKIE);
  20.     $_REQUEST = unMagicQuotify($_REQUEST);
  21.     $_FILES = unMagicQuotify($_FILES);
  22. }
  23.  
  24. session_id();
  25. session_start(); //thisisline 25
  26. ob_start();
  27.  
  28. include "bb.php";
  29.  date_default_timezone_set('America/Chicago');
  30. $connection = mysql_pconnect("localhost","univix_main","random12") or die ("Error connecting to database.");
  31. mysql_select_db("univix_main") or die ("Error connecting to database, hang tight, we are working on it.");
  32.     /*Filter */
  33.  
  34.     include "filter.php";
  35.  
  36.     /*Session */
  37.  
  38.     $User = $_SESSION['Username'];
  39.     $Password = $_SESSION['Password'];
  40.     $Admin = $_SESSION['Admin'];

-------------------------------------------
Please just copy and paste the code how it should be.. I'm new to this coding stuff.

if you want to see the code, it's at galacticworld.net/index.php
Jul 29 '13 #1
1 1424
Dormilich
8,658 Recognized Expert Moderator Expert
Cannot send session cache limiter - headers already sent (output started at /home/univix/public_html/index.php:2) in /home/univix/public_html/Global.php on line 25
session headers (like any other headers) can only be sent if there is no output beforehand.


if you want to see the code, it's at galacticworld.net/index.php
that doesn’t show any PHP code.


PS. this is one of the top 3 PHP errors.
Jul 30 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: mr_burns | last post by:
Hi, i am getting the following errors when running my php script: Warning: Cannot send session cookie - headers already sent by (output started at ...
3
by: lawrence k | last post by:
I'm getting this warning: PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
14
by: bb nicole | last post by:
I using session when creaate a forum. But it display error like: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
3
by: mrosado | last post by:
Hi everybody, I have this problem.- The browser launch this two errors: Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at...
1
by: gipsy | last post by:
Hello, I know that you guys are familiar with this, but I tried almost every solution I googled, but no chance getting it wroked, here is the error. and here is the sessiondata.php lines,...
3
anjali321
by: anjali321 | last post by:
Can anyone help me out in fixing the problem? Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at /home/aman/public_html/contactus.php:1) in...
2
irfanmodan
by: irfanmodan | last post by:
when i run client side login page... in login page i include menutop.php,then in menutop me call commonfile.php,code of commonfile.php as below..... <? session_start(); ?> <?...
1
by: ivan bravo | last post by:
Warning: session_start() : Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\wwwroot\pum\commons\Session.Commons.mod ule.php:7) in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.