c# - ASP.NET Simple User Login -


i using simple login screen users login screen in asp.net forms c#.

i know how valid user has unique username, etc. can easily.

my question once user logged in, how valide user between different page. keep in mind not using built in asp.net membership , roles table (there reasons why not want use it).

my thought once user logged in, have session variable setup , check on different page require access permission. if have valid session can let user view page.

i can like:

       session["validuser"] = "validuser"; 

one thing not sure user view site 10 hours after login. how adjust session not timeout. session variable best way go.

thanks

sessions standard method persisting data between pages in asp.net. however, not going want keep sessions around 10 hours. default, believe 20 minutes.

you can extend timeout, recommend storing cookie or equivalent.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -