asp.netforms-authenticationformsauthenticationticket

password recovery control in asp.net


i would like to create a forgot password control that follows this steps:

1- the user enters his email. 2- an email is send to the user containing the url which has the authentication ticket.

my problem is i cant create an authentication ticket and embed it within the url here is an example i used:

FormsAuthenticationTicket ticket = new
        FormsAuthenticationTicket(1, ttb1.Text, DateTime.Now, DateTime.Now.AddMinutes(60),
            true, string.Empty);

but the ticket isn't included in the url, how can i do that , thanks.

using asp.net 4.0.


Solution

  • Found what i was looking for: http://www.codeproject.com/KB/aspnet/Password_Recovery.aspx