Link to home
Start Free TrialLog in
Avatar of Dnx_7
Dnx_7Flag for Belgium

asked on

Update LastActivity of user in asp.net membership

Hi experts

i use a gridview to get all users of the membership class and i also get the "isOnline" column

how can i update this column in real time for each user?

for now, the user is only online when the use just logged in and after 15 minutes the user is offline...

i read on msdn that the IsOnline is TRUE only if the (lastactivity + 15 minutes) > now
and they advice me to use "membership.updateuser(membershipUser) but it doesn't work

can somebody help me to get user Online in real time...

regards
ASKER CERTIFIED SOLUTION
Avatar of Sammy
Sammy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dnx_7

ASKER

even if i extend the time how can i know that is really "Online"?

suppose that a user logged in then idle for 30 minutes (no request to server)
the user will be consider Online if i extend the time.

right?

it is surely a part of the solution but i want to update the lastActityDate for almost each request to the webserver

is it possible?

regards