Jump to content

[SOLVED] session error


Jay2391

Recommended Posts

I had this code on session_test.php and i created a session_test2.php
to check that the session will continue. The same code is on session_test and
session _test2

Code:

<?php
session_start();

    if($_SESSION['session_var'] == "skipLogin"){
          echo $_SESSION['fname'];
  echo "<br>--ACTIVE--";
   
 
    }else{
          echo "You stinky";
    }

?>

Error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\XAMPP\xampp\htdocs\MDO\session_test2.php:2) in C:\XAMPP\xampp\htdocs\MDO\session_test2.php on line 3
Link to comment
https://forums.phpfreaks.com/topic/32594-solved-session-error/
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.