Click to See Complete Forum and Search --> : FormsAuthentication problem.


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>

sirpelidor
09-27-2006, 12:25 PM
i use asp.net 2.0 login , the problem is when i move to my production server (win2003) my login does not work.



when u say asp.net 2.0 login, you are talking about the login control from .net2.0 right? by default, that login is links to sql express 2005 as your datasource. Which ship with vwd or vs.net2005.

if you move your code to a production server and it doesn't have sql2k5 express, it won't work. what you'll need to go back to your development, and point the datasource to whatever your production server will be using.