How to add FormsAuthenticationTicket to URL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The codes below is copy from msdn about FormsAuthenticationTicket.
It add FormsAuthenticationTicket to cookie.

How can I add the FormsAuthenticationTicket to URL not to Cookie?




///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (Membership.ValidateUser(username, password))
{
string userData = "ApplicationSpecific data for this user.";

FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1,
username,
DateTime.Now,
DateTime.Now.AddMinutes(30),
isPersistent,
userData,
FormsAuthentication.FormsCookiePath);

// Encrypt the ticket.
string encTicket = FormsAuthentication.Encrypt(ticket);

// Create the cookie.
Response.Cookies.Add(new
HttpCookie(FormsAuthentication.FormsCookieName, encTicket));

// Redirect back to original URL.
Response.Redirect(FormsAuthentication.GetRedirectUrl(username,
isPersistent));
}


.



Relevant Pages

  • Dauerhaften Authentication funtioniert nicht
    ... Cookie Inhalt: 50FFE9E0B6A60DF8EBAB .... ... Name: ... ComSport.CookieCheck (finde ich auch nicht im gespeicherten Cookie) ... FormsAuthenticationTicket ticket1 = ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: Forms Authentication in ASP.NET 2.0
    ... FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( ... // Encrypt the cookie using the machine key for secure transport ... That's pretty much all you need for the Forms Authentication without using ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: BUG With FormsAuthentication
    ... Watch out for the cookie size of you store custom info inside the FormsAuth ... One way to do this is to generate a ticket ... principalText = CustomAuthentication.Encrypt; ... > FormsAuthenticationTicket newticket = new FormsAuthenticationTicket( ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Login / auth cookie problem after migrating to .NET 2.0
    ... FormsAuthentication.SetAuthCookie to create a Cookie: ... We're using a standard procedure to login. ... FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( ... iduser, // user name ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: I cannot read cookie because of ASP.NET Forms Authentication cooki
    ... authentication ticket in cookie. ... authentication on my machine and tried it get the cookie, ... FormsAuthenticationTicket tkt; ... I used document.cookie in javascript to get the cookie. ...
    (microsoft.public.scripting.jscript)