Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8312431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:09:43+00:00 2026-06-08T20:09:43+00:00

How do I save the date and time of user’s authentication in an MVC

  • 0

How do I save the date and time of user’s authentication in an MVC .net web application? I have to save it in order to modify the database I’m using in my application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:09:45+00:00Added an answer on June 8, 2026 at 8:09 pm

    It really depends on how your database model is structured. Assuming a User table:

    User
    -------
    ID UserName Password
    

    Add a new column LastLoggedInDate like so:

    User (with logged in date)
    -------
    ID UserName Password LastLoggedInDate
    

    Alternately, if you have a need to see log in history, consider a second table to log logins:

    LoginAttempt
    ------------
    ID UserID DateStamp Successful
    

    This LoginAttempt table can be extended further to include an authentication code with an expiry date for use in integrated authentication (not to be mistaken Windows Integrated Security), or distributed authentication (API).

    LoginAttempt (with auth code)
    ------------
    ID UserID DateStamp Successful AuthCode ExpirationDate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an ASP.Net MVC 3 Web application using Entity Framework 4.1. To
I am trying to save the time in the database for when a user
I have 6 columns of date-time type in a table. My application has a
I have a logging table that stores the user id, date/time, table name, record
I'm writing a bat script and I have to save the date from a
I have 2 date object in the database that represent the company's working hours.
I'm creating a web application using cakephp 1.2.6. There is a functionality that I
Maybe someone can help me out. I have created a simple web user control,
I am using ASP.NET 2.0 with SQL Server 2005. I want my user to
I need to save client machine time when he log in on my web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.