Update LastActivity of user in asp.net membership

Posted on 2006-06-05
Medium Priority
Last Modified: 2012-05-05
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...

Question by:Dnx_7
LVL 27

Accepted Solution

Sammy earned 1500 total points
ID: 16837671
why dont you use userIsOnlineTimeWindow in your webconfig to extend the time?



Author Comment

ID: 16837818
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.


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?


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month9 days, 16 hours left to enroll

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question