Logged-out uses still appear

  • Thread starter Paolo Niccolò Giubelli [Axettone]
  • Start date
P

Paolo Niccolò Giubelli [Axettone]

I have an ASP.NET2 web app, and I've created a small box where I show all
logged-in users; I use a simple iteration trough all registered users and I
check whether each user is online or not. The problems is: when a user logs
out, it still appears on the list! Is it possible to update the status of the
user without waiting a timeout?
 
S

Smith

the status of the
user without waiting a timeout?

Hi Paulo,
Well the specs say:

A user is considered online if the current date and time minus the
UserIsOnlineTimeWindow property value is earlier than the LastActivityDate
for the user.

So you might want to check the value of UserIsOnlineTimeWindow

Thanks
S
 
P

Paolo Niccolò Giubelli [Axettone]

Thank you for your answer, I know that it is necessary to use an asynchronous
approach to this kind of problem, because web is different from Forms and
people may close the browser without logging our properly. But when a user
clicks on "Logout", it fires a synchronous event, that could be easily
handled by the framework, so to switch the user status to offline as the
log-in control does in the opposite situation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,078
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top