"Cannot send session cache limiter..." mysterious problem...

michaelsanford

Translator, Web Developer
Code:
 Warning: Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/neads/filename.html:2) in /Library/WebServer/Documents/neads/filename.html on line 3

The page that displays this is a confirmation page after a user registration.

To begin with, what does this error mean?

The filename.html:2 is where the <?php tag appears, which comes just after a <HTML> tag, then PHP issues session_start(), session_register(name) for the variable I want to print, on subsequent lines.

Edit/PS: It does seem to use the session variable correctly in the page (but that could be an anomaly from past sessions that haven't expired or something).
 
Sorry, I'm an over-caffineated spaz :rolleyes:

For future reference, for sessions to work you have to make <?php session_start() ........ the first line, BEFORE <html>.

Now it works fine, and I get no errors.

On to completing the project on time :p
 
Back
Top