hi all
i m using
to get new unique id for my records in database. Everytime i close the whole browser and open new browser i get a new unique_id.Code:$unique_id = session_id();
I am not able to destroy the old unique id on logout and closing browser tab and get new unique id when opening new browser tab.
If i have to get a new unique id i have to close all tabs of the browser or say whole browser and open the site again in new browser.
I have session_start(); in my config file that is included on all pages.
This is my logout script
vineetCode:<? require_once("config.php"); $unique_id = session_id(); $qry="delete from cart_table where unique_id='$unique_id'"; mysql_query($qry); $_SESSION = array(); session_unset(); session_destroy(); header("Location:index.php"); ?>



Reply With Quote


Bookmarks