PDA

View Full Version : Cookie and ASp.net Forms Authentication


emjsync
03-03-2006, 04:05 AM
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.

joelnet
03-03-2006, 10:27 AM
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