How to set login and session to never expire in ASP.Net forms authentication & SQL Server session mode?
up vote
0
down vote
favorite
We have an existing application on ASP.Net forms & uses SQL Server session state mode with custom database (not tempdb). The application uses forms authentication to login.
What we need to do is:
- once logged in to a particular browser, the login and session never expires. Even after the browser exit or system restarts or there is no user activity.
- the user need to re-login only after cookies are cleared manually OR as a system administrator we truncate the SQL database tables for session management.
How can this be achieved ?
c# asp.net session session-cookies forms-authentication
add a comment |
up vote
0
down vote
favorite
We have an existing application on ASP.Net forms & uses SQL Server session state mode with custom database (not tempdb). The application uses forms authentication to login.
What we need to do is:
- once logged in to a particular browser, the login and session never expires. Even after the browser exit or system restarts or there is no user activity.
- the user need to re-login only after cookies are cleared manually OR as a system administrator we truncate the SQL database tables for session management.
How can this be achieved ?
c# asp.net session session-cookies forms-authentication
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We have an existing application on ASP.Net forms & uses SQL Server session state mode with custom database (not tempdb). The application uses forms authentication to login.
What we need to do is:
- once logged in to a particular browser, the login and session never expires. Even after the browser exit or system restarts or there is no user activity.
- the user need to re-login only after cookies are cleared manually OR as a system administrator we truncate the SQL database tables for session management.
How can this be achieved ?
c# asp.net session session-cookies forms-authentication
We have an existing application on ASP.Net forms & uses SQL Server session state mode with custom database (not tempdb). The application uses forms authentication to login.
What we need to do is:
- once logged in to a particular browser, the login and session never expires. Even after the browser exit or system restarts or there is no user activity.
- the user need to re-login only after cookies are cleared manually OR as a system administrator we truncate the SQL database tables for session management.
How can this be achieved ?
c# asp.net session session-cookies forms-authentication
c# asp.net session session-cookies forms-authentication
asked 2 days ago
DipakRiswadkar
24229
24229
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349188%2fhow-to-set-login-and-session-to-never-expire-in-asp-net-forms-authentication-s%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown