Hi, its me again.:scared:
im using the following code to destroy my session but instead of removing the session, it just empties the data, for e.g:
when i start the session a file is created, after storing my data in the session the file could be 2 or 3 kb in size, after i logout the same session file is still there but it its 0kb in size
elseif($_GET['instruction'] = "logout")
{
//session_regenerate_id();
session_start();
session_destroy();
header("location: ../index.php");
}
please note: i am using session.save_path to change the folder of my session files.
if you can also guide me regarding the following:
1. session_regenerate_id(), do i use it before or after i call session_start on all pages
2. if i use session_destroy does it also delete the cookie on the clients machine?