Thnaks for your reply. I have used the javascript method on onunload. in that i call the cakephp function using new Ajax.Requesthandler function but it is not working. Session is still not get destroyed
On Nov 18, 9:53 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > Yeah multiple tabs in firefox and such the session , meaning the user > still browsing is still alive. Thus they don't get destroyed. As for > the ajax it might work, have to do something like those annoying > popups that popup when you try to leave some sites. Which they use the > onunload property in the body tag. > > On Nov 18, 6:49 am, "Liebermann, Anja Carolin" > > > > <[EMAIL PROTECTED]> wrote: > > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
