Jump to content

sessions


jagguy

Recommended Posts

With sessions, I am getting errors when I include this at start of html file (it is parsed with php on apache and works fine otherwise)

   
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<?php session_start(); ?>

I get an error as well when swapping the lines around.


Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at...
Link to comment
https://forums.phpfreaks.com/topic/26284-sessions/
Share on other sites

Same error as mentioned in one of the sticky threads!

<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<? MUST begin on line 1 and absolute left, no output what so ever  to the browser before session start
Link to comment
https://forums.phpfreaks.com/topic/26284-sessions/#findComment-120202
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.