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. Advertisements

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:
    851
    John Saunders
    Nov 18, 2003
  2. Eric
    Replies:
    2
    Views:
    1,787
    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:
    804
    =?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:
    480
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 24, 2006
  5. JEFF
    Replies:
    1
    Views:
    1,242
    =?Utf-8?B?YnJpYW5zW01DU0Rd?=
    Nov 12, 2007
  6. Pete
    Replies:
    5
    Views:
    274
    Brian Scott
    Dec 16, 2003
  7. M. Posseth
    Replies:
    1
    Views:
    263
    M. Posseth
    Jul 5, 2004
  8. Eric
    Replies:
    2
    Views:
    932
Loading...