On Sat, May 29, 2010 at 11:15 AM, Rajesh kumar
<[email protected]> wrote:
> Dear luggies,
> I am working on a application, where i was assigned the task of tracking
> user sessions, i need to store the time of user login and logout. the
> problem is that if the user closes the browser or the system gets shutdown,
> he must be logged out. how can i achive this in php or there is any thing
> with postgres like if the connection to the database close, it updates the
> time etc...

Once the HTTP connection/TCP connection closes down due to its
intrinsic timeout you can remove the session.

Once the system shuts down or closes the browser, this is what
will happen.

Th exact semantics I dunno. Obviously the connection to postgres also
will close because this is made from your server to its local DB.

-Girish



-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to