FormsCookieName

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



Hi,
Somwhere on Internet I saw this example how to create and log-in the new user:
a/ Membership.CreateUser(...)
b/ Response.CookiesRemove(FormsAuthentication.FormsCookieName)
c/ Response.Redirect("some url within app")

1/
I don't understand the line b/ why it is needed to remove the default cookie
name .ASPXAUTH?

2/
Do I need to set up FormsCookieName property to unique value for every new
user, or can I use the same name for all user within one web application (web
site).

3/
Is FormsCookieName used just as a prefix for a cookie or it should
unambiguously indentify the user cookie?

Thanks fro help,
Lubomir
.



Relevant Pages

  • Re: Cookies from ASP.NET app not persisting even when enabled!
    ... > I'm new to ASP.NET and have been developing a small app at work to test ... > and the authorization cookie is saved as expected on the local machine. ... any browser OTHER THAN the one on the development ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ADFS & MOSS 2007 troubles
    ... SinceADFSuses the same cookie ... and make sure the cookie paths for each app are /app1, /app2, /app3, etc. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net ...
    (microsoft.public.windows.server.active_directory)
  • Re: can winforms SET a cookie? will this work?
    ... Enable the windows authentication for your web application, ... enable/disable users/groups from the web.config file. ... > (i can get those from the batch job and pass them to the winform app?). ... > cookie and determine if the person using this app has rights to the ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Problem getting cookie to be recognized by server
    ... I am unable to pass along a simple Cookie obtained from a HttpWebRequest ... ASP.NET app programmatically calls a login page against our ... own Java ServletExec code to authenticate - via ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how to do a PAUSE in an codebehind function?
    ... and the cookie is ... > normally we don't need to start up a separate browser session. ... > app variable. ... > So we were going to open the app silently during startup, ...
    (microsoft.public.dotnet.framework.aspnet)