Hi Yogesh,

As far as I know this is not possible. This is also the reason why you can set 
a session timeout. The server and therefore your application has no clue if 
your user still views teh browser window or if the windows has bee closed, the 
PC shut down etc. 

Maybe you can do a kind of ping via AJAX to check if there is still someone 
there, but I am not fit with AJAX. But normally you have a session timeout and 
if the user is just leaving without properly checking out the session is loast 
after some time, depending on your settings.

Bye Anja

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von Yogesh
Gesendet: Dienstag, 18. November 2008 13:02
An: CakePHP
Betreff: Destroying cakephp session on closing browser window


Hi Can anyone please help me out?
I wan't to destroy the session when user closes the Browser windows.
my cakephp version is 1.2 beta
Explanation: If user is logged in and closes the Browser without log out then 
next time if he opens the Browser then it should not store the session. 
Currently if I close the browser then it does not store the session in IE6 only 
but if I have open the multiple instances of fire fox 3 or IE7 and only close 
the browser or tab then it does destroy the Session.
     Waiting for your sugessions
     Thanks in Advanced

Regards
Yogesh




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to