You must Sign In to post a response.
Category: Visual Studio
#750598
It is the browser feature to remember the user credentials and display it in the login form whenever user tries to login from the site.
If you are using client side cookies to perform authentication then you can set the cookie expiry period to never so that the authentication cookie never expires and user can always login using the prepopulated data which comes from client side cookies in the browser. Something as below sample code. This is just an example so that the cookie never expires and can be reused for every time user login.
HttpCookie c = new HttpCookie();
c.Expires = DateTime.Now.AddDays(-1);
Response.Cookies.Add(c);
Miss. Jain
Microsoft Certified Technology Specialist in .Net
If you are using client side cookies to perform authentication then you can set the cookie expiry period to never so that the authentication cookie never expires and user can always login using the prepopulated data which comes from client side cookies in the browser. Something as below sample code. This is just an example so that the cookie never expires and can be reused for every time user login.
HttpCookie c = new HttpCookie();
c.Expires = DateTime.Now.AddDays(-1);
Response.Cookies.Add(c);
Miss. Jain
Microsoft Certified Technology Specialist in .Net
#750618
Hi,
I think its a browser feature and explicit we can't fore the browser to save the user name and password. What the best we can do is to create long sessions so that when ever you can come back to the same site, you will be logged in.
Thanks,
Ashutosh Jha
http://tricksroad.com
I think its a browser feature and explicit we can't fore the browser to save the user name and password. What the best we can do is to create long sessions so that when ever you can come back to the same site, you will be logged in.
Thanks,
Ashutosh Jha
http://tricksroad.com
Return to Return to Discussion Forum