Some things which might help:

Session_onEnd
Isn't very reliable

Another way of doing the persistence coule be through a application variable 
in the form of an array.
This will automaticly empty when a power off happens.

There are bound to be examples of this online

A quick google turned up this one:
http://aspnet101.com/aspnet101/tutorials.aspx?id=16

Which can easily be altered to include a user id

One last point of intrest you might want to set up a page to test code first 
before placing it into the session_onend

Because there is no easy way to test out if it actually works.





----- Original Message ----- 
From: "askvipinmails" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, November 19, 2005 11:32 AM
Subject: [AspClassicAnyQuestionIsOk] How to maintain User Status on website


> Hi All,
>
> I have one user authentication system on my site. Where a user can
> input his/her user name to check the updation of records. While login I
> am saving his/her online status (Like in any dating site)in a table
> called tblStatus. I am able to display their online status.
> I am also maintaing their offline stauts when they mannually click on
> logout button.
> My Problem:
> 1)I want to display offline status if a user closes his/her browser.
> 2)If there is any power failure. The status should become offline.
> My Question:
> 1)Where should I update my tblstatus table to offline for that users.
> On What Event?
> 2)I have tried to update the status on Session_onEnd() event in
> global.asa file but it is not working.
>
> Kindly guide me.
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
> 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to