I am writing a web service in vb.net/asp.net 2 that requires a username. It works great when requesting the URL āwww.mysite.comā, but if someone logged in using āmysite.comā without āwwwā and goes to the page that calls my web service, HttpContext.Current . User.Identity.Name gives a null value.
How can I solve this problem?
Many thanks,
If you use forms authentication, try setting the domain to in mysite.comin the element <forms>.
mysite.com
<forms>
How is this configured in IIS (if you are using IIS)?
, , , , www.mystite.com mysite.com IIS, mysite.com ; , URL- .
Source: https://habr.com/ru/post/1770479/More articles:concurrency (obsolete data) in JPA - javaProblem with AdWhirlLayout - androidUsing custom versions of GNU / GPL web applications as a commercial subscription model - web-applicationsApache user privileges on Centos - linuxCrazy SQLite and cursor leak on autocomplete - androidHow to update mongodb collections - pythonHow can I determine which version of JavaDB / Derby I am using? - jarHow can I dynamically set the image size ratio based on the returned image in raphael? - javascriptAccessing objects in semantic_fieds_for loop / formtastic - ruby-on-railsLua Domain Configuration Configuration - luaAll Articles