Forms Authentication Fails some times and not some times???

Discussion in 'ASP .Net' started by =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 28, 2006.

  1. Hi,

    I am running into this wierd problem. After validating the user I set the
    authentication cookie
    FormsAuthentication.SetAuthCookie(userName, false);
    HttpContext.Current.Response.Redirect("Default.aspx?somevar=" + someVar);

    in Default.aspx I check if the user is authenticated.
    This works some times and some times it does not work.

    I checked the IIS logs and I see two entries for Default.aspx in the failed
    sessions.
    In the second entry in IIS log I would see that its missing the
    authentication cookie.

    I don't understand whats going on.

    Any help...??????
     
    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 28, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Saunders
    Replies:
    1
    Views:
    681
    John Saunders
    Nov 18, 2003
  2. Eric
    Replies:
    2
    Views:
    1,485
    Tommy
    Feb 13, 2004
  3. =?Utf-8?B?bWF2cmlja18xMDE=?=

    SetAuthCookie works some times and fails some times?

    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 23, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    514
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 23, 2006
  4. =?Utf-8?B?bWF2cmlja18xMDE=?=

    Forms Authentication Fails some times

    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 24, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    389
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 24, 2006
  5. Eric
    Replies:
    2
    Views:
    543
Loading...

Share This Page