Forms Authentication Fails some times

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

  1. Hi,

    I am running into this problem while using Forms Authentication.
    Here is the scenario...

    After validating the user I set the authentication cookie
    FormsAuthentication.SetAuthCookie("username|userEmail", false);
    HttpContext.Current.Response.Redirect("anotherpage.aspx");

    On anotherpage.aspx
    HttpContext.Current.User.Identity.IsAuthenticated
    some times evaluates to true and some times evaluates to false.

    I have no clue why it behaves differently some times.
    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 24, 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:
    653
    John Saunders
    Nov 18, 2003
  2. Eric
    Replies:
    2
    Views:
    1,391
    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:
    500
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 23, 2006
  4. =?Utf-8?B?bWF2cmlja18xMDE=?=

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

    =?Utf-8?B?bWF2cmlja18xMDE=?=, Mar 28, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    483
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    Mar 28, 2006
  5. M. Posseth
    Replies:
    1
    Views:
    156
    M. Posseth
    Jul 5, 2004
Loading...

Share This Page