Weird behaviour of SetAuthCookie, bug?

Discussion in 'ASP .Net' started by Strange Cat, Jan 21, 2004.

  1. Strange Cat

    Strange Cat Guest

    Hi everyone!

    I have a weird problem with FormsAuthentication.

    I have an app that works just fine with FormsAuthentication.

    The user requests the homepage, he is redirected to login page, then enters
    valid username and password that are checked versus a db table, if the info
    is ok i execute SetAuthCookie(xxx, False) then i open a new window which
    displays the home page, all is working fine...

    The problem occurs on a machine named PIPPO_PC ONLY if I login in WinXP
    using user PIPPO, so the situation is:

    Computer Name: PIPPO_XP
    WinXP User Name: PIPPO

    After logging in Windows with user name PIPPO, if I try to login on my app
    after opening the new window with the home page, the LOGIN page of my app is
    display instead of the home page, even though the login procedure on my APP
    goes ok... now this is weird...

    Looks like that ASP.NET cannot set the cookie if the computer name and user
    name are similar...

    Does any one have a similar problem???

    Thanx in advance

    ASC
     
    Strange Cat, Jan 21, 2004
    #1
    1. Advertising

  2. Please check the machine that have this problem to see if it accepts cookies
    from your FormsAuthentication applications.
    Check the Privacy tab in the Internet Options Dialog and see if cookies from
    your appliaction are blocked?

    You could override cookie handling for the web site containing your
    application. If you need to do so, please apply the following:

    In the internet options dialog, open the Privacy tab and click on the Edit
    button in the Web Sites section. Write the address of your site and choose
    allow to allow the site to use cookies.

    Hope this solves you problem.
    Regards
    Mohamed El Ashmawy
    MEA Developer Support Center
    ITWorx on behalf of Microsoft EMEA GTSC


    "Strange Cat" <> wrote in message
    news:xVrPb.122926$...
    > Hi everyone!
    >
    > I have a weird problem with FormsAuthentication.
    >
    > I have an app that works just fine with FormsAuthentication.
    >
    > The user requests the homepage, he is redirected to login page, then

    enters
    > valid username and password that are checked versus a db table, if the

    info
    > is ok i execute SetAuthCookie(xxx, False) then i open a new window which
    > displays the home page, all is working fine...
    >
    > The problem occurs on a machine named PIPPO_PC ONLY if I login in WinXP
    > using user PIPPO, so the situation is:
    >
    > Computer Name: PIPPO_XP
    > WinXP User Name: PIPPO
    >
    > After logging in Windows with user name PIPPO, if I try to login on my app
    > after opening the new window with the home page, the LOGIN page of my app

    is
    > display instead of the home page, even though the login procedure on my

    APP
    > goes ok... now this is weird...
    >
    > Looks like that ASP.NET cannot set the cookie if the computer name and

    user
    > name are similar...
    >
    > Does any one have a similar problem???
    >
    > Thanx in advance
    >
    > ASC
    >
    >
     
    Mohamed El Ashamwy, Mar 1, 2004
    #2
    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. Frank Oquendo

    Re: SetAuthCookie?

    Frank Oquendo, Aug 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    574
    John Saunders
    Aug 26, 2003
  2. =?Utf-8?B?VHlzb24gQnJvd24=?=

    SetAuthCookie works, but our cookies aren't being written - HELP

    =?Utf-8?B?VHlzb24gQnJvd24=?=, May 3, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    428
  3. Danny Ni

    Question about SetAuthCookie

    Danny Ni, Sep 25, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    509
    Danny Ni
    Sep 25, 2004
  4. ChInKPoInt [No MCSD]

    SetAuthCookie cookie Security?

    ChInKPoInt [No MCSD], Dec 3, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    439
    ChInKPoInt [No MCSD]
    Dec 3, 2004
  5. Replies:
    9
    Views:
    445
    Tim Roberts
    Sep 13, 2006
Loading...

Share This Page