Page 1 of 1

Cannot send session cache limiter

Posted: Sun Dec 17, 2006 12:45 pm
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?

Posted: Sun Dec 17, 2006 12:49 pm
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.

Posted: Sun Dec 17, 2006 12:51 pm
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, ;