ASP MVC: Keeping track of logged in users.

Posted by user323395 on Stack Overflow See other posts from Stack Overflow or by user323395
Published on 2010-04-22T15:26:03Z Indexed on 2010/04/22 15:33 UTC
Read the original article Hit count: 214

I'm creating a ASP MVC application. And because of the complex authorization i'm trying to build my own login system. (So i'm not using asp membership providers, and related classes).

Now i'm able to create new accounts in the database with hashed passwords.

But how do i keep track that a user is logged in.

Is generating a long random number and putting this with the userID in the database and cookie enough?

Sorry for my rather bad english! Ty in advance :)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc