Update LastActivity of user in membership

Posted on 2006-06-05
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

    why dont you use userIsOnlineTimeWindow in your webconfig to extend the time?,d=ide).aspx

    LVL 2

    Author Comment

    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?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now