David Dorward wrote:
> On Dec 19, 2:02 pm, Php Developer <php.developer2...@gmail.com> wrote:
>> I know maybe i m not asking unreliable thing but i want a way to make
>> it work
>
> It isn't possible, as you've been told several times.
Is it possible? -- Yes. Is it reliable? -- No.
>> if you know better way thn that then tell.As orkut and
>> facebook are using this things..
>
> Then they lie. The closest you can come is "The user access a page X
> seconds ago, they might still be online" (and that involves something
> on the server, which could be JavaScript, but probably isn't).
If the application depended on XHR, XHR could also be used to determine
whether or not a request could be made to the same document resource. If
it threw an exception on an otherwise proper XHR:

pen() call, then one
could assume that the client was offline, and if it did not, that it was online.
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>