Cookie and ASp.net Forms Authentication

Discussion in 'Visual Studio' started by emjsync, Mar 3, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. HI,

    I noticed that after uploading my web project, all of my session state and cookie configuration will not work. Is there a way to enable cookie through the web hosting system.


    i.e.

    label1.text=User.Identity.Name;

    that code should take the user name and passed it to the label field control. It workd well on the local server by not on the hosting site.
     
  2. When you use localhost, if you have authentication set to windows, your User.Identity.Name will be your windows logon name. This doesn't work in a hosted environment.

    check your web.config and make sure you have your authentication set as forms and not windows.

    this is just my guess, your problem could be caused by many things.


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page