How can I implement a login wall for expired or inappropriate pages?
Posted
by
Redandwhite
on Stack Overflow
See other posts from Stack Overflow
or by Redandwhite
Published on 2012-11-01T10:58:28Z
Indexed on
2012/11/01
11:00 UTC
Read the original article
Hit count: 160
I am writing a website that very explicitly requires a login wall.
Visitors should be required to log in before they are allowed to view a page.
The page being built depends very much on the user's "ID". I am not sure how or where to store the user's login.
I am not sure whether I should use a session variable (e.g. Session["userId"]
), or some other method. The problem I see with session variables is that it's difficult to time out sessions.
Note: I'm using C# 3.5 with ASP.NET in Visual Studio 2008.
© Stack Overflow or respective owner