YochaiZvik
09-27-2006, 05:15 AM
In my web application i use asp.net 2.0 login , i have a weird problem.
the problem is when i move to my production server (win2003) my login does not work.
the problem is when i'm using the FormsAuthentication.SetAuthCookie it does not cteate any cookie.
this problem does not occure when i am using FireFox. in FireFox every thing work perfect. its seems that the problem occured only in IE.
This is the code in my app:
FormsAuthentication.SetAuthCookie(txbName.Text, true);
This is my web.config code:
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="default.aspx" domain="www.mydomain.com"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false"/>
</authentication>
the problem is when i move to my production server (win2003) my login does not work.
the problem is when i'm using the FormsAuthentication.SetAuthCookie it does not cteate any cookie.
this problem does not occure when i am using FireFox. in FireFox every thing work perfect. its seems that the problem occured only in IE.
This is the code in my app:
FormsAuthentication.SetAuthCookie(txbName.Text, true);
This is my web.config code:
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="default.aspx" domain="www.mydomain.com"
protection="All"
timeout="30"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false"/>
</authentication>