user online offline session
From: roger (pageme_at_ntlworld.com)
Date: 03/25/05
- Previous message: Ragnorack67_at_hotmail.com: "Re: need help understanding directory path tree structures"
- Next in thread: Oli Filth: "Re: user online offline session"
- Reply: Oli Filth: "Re: user online offline session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 25 Mar 2005 19:01:47 GMT
I have a desktop app that uses a local client socket to post logon commands
to a website using php scripts, at the moment i am using the logon details
to write to a db every x amount of minutes to tell any searches that user x
is online and if the app closes then it posts a logoff prior to closing,
when someone does a search from their desktop app it posts the request to
the php script and the results found are checked against if lastlogon <
currenttime - threshold then user online else mark offline for those that
shutdown without the chance to send the logoff etc..
now obviously i have to have the users desktop app re-logging on at
intervals to update the last logon time so..
1) Is their a better way considering i am not using a browser etc...like
session_start , session destroy etc...
2)Also can sessions detect if a users internet connection breaks or if their
pc crashes or reboots etc.
- Previous message: Ragnorack67_at_hotmail.com: "Re: need help understanding directory path tree structures"
- Next in thread: Oli Filth: "Re: user online offline session"
- Reply: Oli Filth: "Re: user online offline session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|