Author: kjmcad | Posted on: 8/20/2009 1:39:10 PM | Views : 249

I have the follow code in my button click event
//Sets the authentication cookie FormsAuthentication.SetAuthCookie(Text_txtUserName.Text, true);
It looged me in and I'm authenticated but when I do any kind of postback. I get logged out!
Here is my web.config line.
<authentication mode="Forms">
      <forms name=".ASPXAUTH" loginUrl="default.aspx" timeout="10" slidingExpiration="true" protection="All" path="/" cookieless="UseCookies" />
    </authentication>
 
What am I doing wrong!!????
...

Go to the complete details ...