Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Deleting Session On Closing Browser Tab (http://www.go4expert.com/forums/deleting-session-closing-browser-tab-t19082/)

rendra_mm2 18Aug2009 11:49

Deleting Session On Closing Browser Tab
 
Hei all,,, please help me ,,, :happy:

1. How i can close opened tab / window (not popup) in firefox ...
2. Deleting session on this tab when we close it ...

My Logout script :

  1. <? require_once("config.php");
  2. $unique_id = session_id();
  3. session_regenerate_id();
  4. $qry="delete from cart_table where unique_id='$unique_id'";
  5. mysql_query($qry);
  6. $_SESSION = array();
  7. session_unset();
  8. session_destroy();
  9. header("Location:index.php");
  10. ?>

shabbir 18Aug2009 14:01

Re: Deleting Session On Closing Browser Tab
 
Probably that is not possible but you can have a time out which should do the job

nimesh 24Aug2009 01:49

Re: Deleting Session On Closing Browser Tab
 
window.close() does not help you?
or
you don't want it in html?

deleting session on a tab?
that should happen


All times are GMT +5.5. The time now is 23:47.