0

Hi guys,
I use wamp for development, i kinda use it for multiple projects development! I have one problem, one site cannot remove session (cant destroy sessions) i dnt know why!... When I log out from other sites in my server can destroy all session variables (I can understand that!) but this one cant do (I cant understand that!!!)...
please help.

logout.php:

<?php require_once("required/functions.php");?>
<?php
    
	 session_start();
	 
	 $_SESSION=array();
	 
	 session_unset();
	 
	 if (isset($_COOKIE[session_name()])){
				setcookie(session_name(),'',time()-49000, '/');
				 }
				 
			session_destroy();
				
		locate("index.php?logout=1");
		?>

same code with all log outs files.

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by moerpheus
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.