fork download
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <title>Логаут</title>
  7. </head>
  8.  
  9. <body>
  10. <?php
  11.  
  12. if (isset($_SESSION['user_login']) ) {
  13.  
  14. header('Location: /index.php');
  15. } else {
  16. echo "<p>Тебе тут не место! <a href='index.php'>Уйти.</a> </p>";
  17. }
  18.  
  19. ?>
  20. </body>
  21. </html>
Success #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8">		
	<title>Логаут</title>
</head>
	
<body>
<p>Тебе тут не место! <a href='index.php'>Уйти.</a> </p></body>
</html>
stderr
PHP Warning:  session_start(): Cannot send session cookie - headers already sent by (output started at /home/ZdWYbN/prog.php:10) in /home/ZdWYbN/prog.php on line 12
PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /home/ZdWYbN/prog.php:10) in /home/ZdWYbN/prog.php on line 12