I an using Session for storing UserName for whole project.
But it always time out before 20 min.
I want set value in properties and want to use in project but when my page is loading again its showing null value.
How can i save this value in this?
Code what i am using.
public string UserName {get; set; }
public string Password {get; set;}
Properties are a language construct (not an ASP.NET feature) and won’t survive either.
You should persist the information in a database or up the session timeout.