.NET 2.0 FormsAuthentication Remember Me Challenge(xerratus.com)
submitted by
xerratus(415) 5 years, 6 months ago
A few weeks ago, I posted a solution I came up with a way to utilize a remember me checkbox in .NET 2.0 that, when selected, pre-populated just the username in the username textbox during subsequent visits. The problem I found was that signing out of FormsAuthentication wiped out any and all cookies I had set during or prior to logging a user in. So, the simple act of looking at the cookie to see if the user wanted to be remembered became quite an ordeal. My solution was to set/get the cookie using JavaScript.
There are some skeptics out there though. So, for them, I've created a very simple website solution that tries to set and get the remember me cookie as explained above.
The challenge is to modify the solution so that it DOES work.
|category: ASP.NET
|Views: 13
tags:
Authentication another
Everyones tags:
Your Tags: