ASP Classic Session Bug, related to Cookie Expiry

Discussion in 'ASP General' started by tamer.yousef@gmail.com, Jul 21, 2005.

  1. Guest

    We are working on an old asp project and we noticed that some users get
    kicked out of the session right after they log in.

    I investigated the issue and I found the cause:
    1- The user login successfuly.
    2- He gets redirected to the menu screen. that's when I set some
    cookies to cookie("cookie name").expires = Now. that when the session
    starts to disapear, once the user tries to access other pages (or even
    refresh), the ASPSESSIONID cookie disapears.

    I did some debugging on the http_cookie collection and looks like the
    ASPSESSION disapears once I set the cookie expiration, although I set
    the expiration for cookies unrelated to the ASPSESSIONID.

    Here is the tricky thing, it works on 90% of the machines, and it
    doesn't on other machines, it's also random, so some users who had the
    problem, are now able to work on the system and the problem disapeard.

    Have you guys ever had this problem, or do you know if it is related to
    IE batches or service packs?
     
    , Jul 21, 2005
    #1
    1. Advertising

  2. No answers for you, but we have been trying to figure this one out for
    several years.

    We usually have the user reinstall the browser, and that "fixes" it. But it
    might have just gone away. I've been looking for years for anything on this,
    so please let me know if you see anything. It has seemed like it was timed
    with patches, but I think we just noticed more - like the full moon.

    I found a IIS 4/5 issue where it was issuing a new ASPSESSIONID with every
    request, but that was only after turning on secured session id's. And it was
    fixed in W2K SP3, which we've had for months. And I just worked with someone
    experiencing the issue this afternoon.

    Didn't get a chance to test this out with her, perhaps you can - deleting
    all offline content?

    "" wrote:
    > We are working on an old asp project and we noticed that some users get
    > kicked out of the session right after they log in.

    < SNIP >
    > Here is the tricky thing, it works on 90% of the machines, and it
    > doesn't on other machines, it's also random, so some users who had the
    > problem, are now able to work on the system and the problem disapeard.
    >
    > Have you guys ever had this problem, or do you know if it is related to
    > IE batches or service packs?
     
    Michael Faires-McClellan, Sep 27, 2005
    #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. Replies:
    0
    Views:
    731
  2. Milsnips
    Replies:
    1
    Views:
    426
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 15, 2007
  3. sheraz_aries

    cookie expiry - classic asp

    sheraz_aries, Mar 20, 2009, in forum: .NET
    Replies:
    0
    Views:
    821
    sheraz_aries
    Mar 20, 2009
  4. Ray

    cookie expiry date problem

    Ray, Apr 21, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    158
  5. Vince C.
    Replies:
    1
    Views:
    210
Loading...

Share This Page