Hi
I have a small application that uses the asp.net Membership Provider.
The Application is in 2 parts, Normal Web Browser and Mobile.
In the Normal Web Browser Version I have a logon screen that consists of an asp:Login Form.
This works fine and when I am redirected I have a LoginView that displays the Current Username.
However because of formatting issues in the Mobile Version I chose to have regular asp:Textbox's to collect the login details.
A button then runs the following Code.
string username = _username.Value, password = _password.Value;
if(Membership.ValidateUser(username, password))
{
Response.Cookies.Remove(FormsAuthentication.FormsCookieName);
FormsAuthentication.SetAuthCookie(username, false);
// Ensure that after logging in, mobile users stay on mobile pages
string returnUrl = Reque ...
Go to the complete details ...