Cannot send session cache limiter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saibot1
Forum Newbie
Posts: 8
Joined: Sat Nov 25, 2006 9:13 pm

Cannot send session cache limiter

Post by saibot1 »

Does anyone know what causes these errors?

1.) Warning: Cannot send session cache limiter - headers already sent
(output started at /usr/local/pathname/functions.php:71) in
/usr/local/pathname/login.php on line 18

2.) Warning: Cannot add header information - headers already sent by (output started at /usr/local/pathname/functions.php:71) in /usr/local/pathname/login.php on line 28

I have an .inc file called functions.php that contains all the functions for the script. I also have a login.php and a config.php

Now if I take out the includes I do not receive and error?
Last edited by saibot1 on Mon Dec 18, 2006 1:56 pm, edited 1 time in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

headers already sent
Maybe the most common and most often discussed php problem. Please use the web search engine of your trust to search the internet and/or search the board for headers already sent.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Headers already sent errors have been talked about endlessly, so I'll assume you will search for the solution to those.

As for generating the ETag in the format you are looking, the following is a possible (untested) solution.

Code: Select all

$etag = md5(strtotime('last monday'));
$etag = substr($etag, 0, 6) . '-' . substr($etag, 6, 3) . '-' . substr($etag, 9, ;
Post Reply