I have a basic website with a member login page and an administration backend area. I am using ASP.NET Membership tables for authentication.
When a member logs in they are authenticated and have access to their member profile and other related member areas.
If a user logs in and I detect they are in the ADMINISTRATOR role then a link to access the admin area of the site is available.
When the admin clicks this admin link the site redirects to SSL HTTPS protocal and is suppose to send the admin to the Administrtion area of the site.
string SecureURL;
SecureURL = "https://";
SecureURL = SecureURL + Request.ServerVariables["SERVER_NAME"];
SecureURL = SecureURL + "/Administration/Default.aspx";
Response.Redirect(SecureURL, true);
However, the user is redirected back to the login page and has to login again and then they can access the admin area.
How can I force the user to remain logged in when switching to HTTPS from HTTP?????