Geek Articles

Categories

 

Subscribe

Daily Updates Subscribe geekarticles update via email Subscribe geekarticles update via RSS

 
GeekArticles Database SQL Server

Examining ASP.NET's Membership, Roles, and Profile - Part 10

Author: aspnet.4guysfromrolla.com | Published: 17th Apr 2008 | Visited: 71 times | Add Comment
Filed in: SQL Server

The Membership system automatically tracks the last date and time each user's account has been accessed. With the SqlMembershipProvider, this information is stored in the aspnet_Users database table in a datetime column named LastActivityDate. This column is automatically updated to the current UTC date and time whenever a user logs into the site, whenever their user account information is updated, and whenever their user account information is retrieved. In addition to tracking each user's last activity date and time, the Membership system includes a method named GetNumberOfUsersOnline. This method returns the number of users whose last activity date and time is within a specified window; by default, this method returns the number of users whose aspnet_Users.LastActivityDate value falls within the last 15 minutes. This article, the tenth installment of a multipart article series on ASP.NET's Membership, Roles, and Profile systems, examines the GetNumberOfUsersOnline method and see how to extend the Membership system to include additional user activity information. Specifically, we will add a new table to the database used by the SqlMembershipProvider that associates a description of each user's current action. We will then update our ASP.NET pages to update the records in this table to include a description of the user's current action. For example, when visiting the home page we may use the description, "Viewing the home page." Finally, we will create a web page that displays the list of currently logged on users and their last known action. Read on to learn more! Read More >

Read Article
 

Sponsored Links

 


Related Articles

 Consumer and Provider Roles Consumer and Provider Roles When we speak of the Consumer and Provider roles for the ServiceMix components, the difference is very subtle at first sight, but very important from a programmer perspective. The following figure shows the Consumer and Provider roles in the ServiceMix E ...

 More Texas Holdem Analysis in C#: Part 1 Using C# to do sophisticated analysis of Texas Ho ...

 More Texas Holdem Analysis in C#: Part 2 Using C# to do sophisticated analysis of Texas Ho ...

 Article :: Getting Your Disaster Recovery Plan Funded - with an Awesome Business Impact Analysis, Pa... Why won't management fund your disaster recovery plan? It's time to revise your think ...

 Agochar Keypad : Part 2 - A draggable and customizable Hindi Keypad - like popup A draggable and customizable keypad to input hindi (official language of India) characters in text box using mo ...

 Article :: One Leet Pwning Child: Give One, Get Owned, Part 1 Seth Fogie takes an exploratory look at the XO to see what?s inside and provides a few pointers for preparing it for "enhanceme ...

 Taking a Fireworks comp to a CSS-based layout in Dreamweaver ? Part 1: Initial design Create your web design in Fireworks before moving it to Dreamwea ...

 Utilizing your .NET Projects Automated Acceptance Tests on Crystal Reports - Part 1 In this first part of the series, Eric shows how to use automated acceptance testing against Crystal Reports using the object model. After providing the requirements, he examines how to utilize automated acceptance tests with reports along with sample code to validate the report. He concludes the ar ...

 Office Web Component v11.0 Spreadsheet And AJAX Interoperatibility Part 1 This article demonstrate, how OWC and AJAX can be used to store spreadsheet content as XML data into database.This XML in turns rendered as spreadsheet in OWC control from database sou ...

 Beginners Guide To Threading In .NET Part 1 of n Beginners Guide To Threading In ...



Next: Creating an Online Boggle Solver :: Solving the Puzzle



Post Comment

Name:


Email:
 (Optional. Used for Notification)

Title:

 
Comment:


Validation Code:
 <=>  (Enter this code in text box)





Latest Articles

 

Popular Articles

Sponsored Links