Thnaks for your reply. I was also thinking to uset the database table to maintain the session but now changing the session maintaing method may will need to work whole things again, but thanks once again for your reply
On Nov 18, 9:05 pm, "Marcelo Andrade" <[EMAIL PROTECTED]> wrote: > On Tue, Nov 18, 2008 at 9:02 AM, Yogesh <[EMAIL PROTECTED]> wrote: > > > 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 > > In my applications (non-Cake) I create a db table like "onlineusers" > with a user id and a timestamp of last app request. Each php script > have a code that checks the difference of the user's timestamp and > the actual timestamp is more than some time of inactivity, and I > delete the user record from this table. Otherwise, I just update the > user timestamp. > > Just an idea. > > -- > MARCELO DE F. ANDRADE (aka "eleKtron") > Belem, PA, Amazonia, Brazil > Linux User #221105 > > [EMAIL PROTECTED] ~]# linkshttp://pa.slackwarebrasil.org/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
