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.

solved!!! problems in the code!... thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.