Jump to content

PHP LOGOUT


shebbycs

Recommended Posts

<?php 
session_start();
$_SESSION['is_logged_out'] = 1;
if($_SESSION['is_logged_out'] ==1)
{
echo("<SCRIPT LANGUAGE='JavaScript'>window.alert('You had been successfully signed out')</SCRIPT>");
session_unset();
session_destroy();
header("Location:chatframe.php");
}
?>

 

I got this error  Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\login\logout.php:6) in C:\xampp\htdocs\login\logout.php on line 9

 

 

which mistake im put?

Link to comment
https://forums.phpfreaks.com/topic/252011-php-logout/
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.