<forms cookieless="AutoDetect"?
I am not sure what I am missing.
Main Topics
Browse All TopicsWhen I check the checkbox for remember login
And when I go back to the site it goes to the home page instead of going to
UserProfile.aspx page
What am I missing?
<authentication mode="Forms">
<forms loginUrl="~/Secure/Home.as
</authentication>
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
What I've done in bigger projects deployed to different customers, we tend to investigate whether their policys allow for cookies or not, if they don't, we instruct to put the site in "Trusted Sites" in their policys which then by default allows our applications to save persistent cookies to the clients.
/Carl.
Sort of like this?
protected void LoginStatus_LoggedIn(objec
{
if (loginUser == null)
{
var lgnMain = ((Login)LoginView1.FindCon
string username = lgnMain.UserName;
loginUser = Membership.GetUser(usernam
}
//represents the active login session
Guid g = Guid.NewGuid();
HttpCookie c = Response.Cookies[FormsAuth
FormsAuthenticationTicket ft = FormsAuthentication.Decryp
//Generate a new ticket that includes the login session ID
var ftNew = new FormsAuthenticationTicket(
ft.Version,
ft.Name,
ft.IssueDate,
ft.Expiration,
ft.IsPersistent,
g.ToString(),
ft.CookiePath);
//Store the expiration date and login session ID in Membership
loginUser.Comment = "LoginExpiration;" + ft.Expiration + "|LoginSessionID;" + g;
Membership.UpdateUser(logi
//Re-issue the updated forms authentication ticket
Response.Cookies.Remove(Fo
//Basically clone the original cookie except for the payload
var newAuthCookie = new HttpCookie(
FormsAuthentication.FormsC
FormsAuthentication.Encryp
//Re-use the cookie settings from forms authentication
newAuthCookie.HttpOnly = c.HttpOnly;
newAuthCookie.Path = c.Path;
newAuthCookie.Secure = c.Secure;
newAuthCookie.Domain = c.Domain;
newAuthCookie.Expires = c.Expires;
//And set it back in the response
Response.Cookies.Add(newAu
}
Business Accounts
Answer for Membership
by: carlnorrbomPosted on 2009-11-05 at 00:30:51ID: 25747590
Hi,
Make sure cookies are allowed in your browser settings for the website. The "remember me" function uses a persistent cookie.
/Carl.