ASP MVC: Keeping track of logged in users.
- by user323395
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 :)