Ask a Question related to ASP, Design and Development.

  1. #1

    Default Ending Session

    I am trying to end a session for a site without having to completely close
    the browser to end it.

    When I access the site and log in it works fine. If I log out and in with a
    different account without closing the browser, I get the first session's
    information. Also, if a open another browser and log in with a different
    account I get the session from the first browser. I've tried deleting all
    cookies and any cached pages, but still get the same first session.

    I created a windows app in .NET and added a browser (control from VB6), and
    have the same problems if I make multiple instances of the browser control
    inside the app, but I CAN have different session inside the .NET windows app
    than what I have in the IE browsers. They don't seem to cross.

    How is the session being held if it is not in a cookie or in a cached page?
    I open a new browser and log in from the beginning, so the session can't be
    in the URL, or in a hidden text field??

    I think I must be missing something on how the sessions are stored??

    Any help would be greatly appreciated, and I apologize if this is an
    inappropriate group to post to.

    -Darrin


    Darrin J Olson Guest

  2. Similar Questions and Discussions

    1. Nested cftransactions ending my session
      I'd like to write a general purpose component that lets me run functions that need to be wrapped inside a cftransaction, but which is clever enough...
    2. Ending Session - Stumped...
      I've built a shopping cart... works well... however once the order has been confrimed I need to clear the session. I'm stumped! Can not find any...
    3. Ending session question
      I'm curious, why is it when I sign out of a site I created using sessions I wind up with: default.cfm?CFID=1403&CFTOKEN=34792644 as well as...
    4. Never ending session?!
      well not really but i cant get the "onSessionEnd" event working here the code i use <cfcomponent> <cfset This.name = "cfDev" /> <cfset...
    5. ASPNET Session ending before time
      > Hi, Where did you set the session timeout? The setting in the IIS console is overridden by the <sessionState timeout> value in machine.config...
  3. #2

    Default Re: Ending Session

    In an ASP page call:

    Session.Abandon

    The cookie is probably not where you thought it was or is hidden from you
    since cookies *are* how ASP handles sessions.

    Chris.

    "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    news:vp59llkg3eolc1@corp.supernews.com...
    I am trying to end a session for a site without having to completely close
    the browser to end it.

    When I access the site and log in it works fine. If I log out and in with a
    different account without closing the browser, I get the first session's
    information. Also, if a open another browser and log in with a different
    account I get the session from the first browser. I've tried deleting all
    cookies and any cached pages, but still get the same first session.

    I created a windows app in .NET and added a browser (control from VB6), and
    have the same problems if I make multiple instances of the browser control
    inside the app, but I CAN have different session inside the .NET windows app
    than what I have in the IE browsers. They don't seem to cross.

    How is the session being held if it is not in a cookie or in a cached page?
    I open a new browser and log in from the beginning, so the session can't be
    in the URL, or in a hidden text field??

    I think I must be missing something on how the sessions are stored??

    Any help would be greatly appreciated, and I apologize if this is an
    inappropriate group to post to.

    -Darrin



    Chris Barber Guest

  4. #3

    Default Re: Ending Session

    Chris,

    Thank you very much for your response.

    Unfortunately, it's not my page that I'm accessing. I'm writing an app for a
    company that wants to 'scrape' the data off of the page from some other web
    site to cut down on their data entry. Everything works fine, but I need to
    close the browser (or whatever process holds the browser) to get rid of the
    session. If I use IE Tools->Internet Options to delete cookies and temporary
    files, or delete them myself the session persists??




    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:OyaPcPllDHA.3320@tk2msftngp13.phx.gbl...
    > In an ASP page call:
    >
    > Session.Abandon
    >
    > The cookie is probably not where you thought it was or is hidden from you
    > since cookies *are* how ASP handles sessions.
    >
    > Chris.
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp59llkg3eolc1@corp.supernews.com...
    > I am trying to end a session for a site without having to completely close
    > the browser to end it.
    >
    > When I access the site and log in it works fine. If I log out and in with
    a
    > different account without closing the browser, I get the first session's
    > information. Also, if a open another browser and log in with a different
    > account I get the session from the first browser. I've tried deleting all
    > cookies and any cached pages, but still get the same first session.
    >
    > I created a windows app in .NET and added a browser (control from VB6),
    and
    > have the same problems if I make multiple instances of the browser control
    > inside the app, but I CAN have different session inside the .NET windows
    app
    > than what I have in the IE browsers. They don't seem to cross.
    >
    > How is the session being held if it is not in a cookie or in a cached
    page?
    > I open a new browser and log in from the beginning, so the session can't
    be
    > in the URL, or in a hidden text field??
    >
    > I think I must be missing something on how the sessions are stored??
    >
    > Any help would be greatly appreciated, and I apologize if this is an
    > inappropriate group to post to.
    >
    > -Darrin
    >
    >
    >

    Darrin J Olson Guest

  5. #4

    Default Re: Ending Session

    Ahh, you mean you want to end the session for the remote webserver from the
    client side?

    [url]http://www.asp101.com/articles/john/sessionsend/default.asp[/url]

    As far as I know, it's not possible unless you can inform the remote
    webserver that you want to end the session.

    Chris.

    "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    news:vp5chqtbt4tg11@corp.supernews.com...
    Chris,

    Thank you very much for your response.

    Unfortunately, it's not my page that I'm accessing. I'm writing an app for a
    company that wants to 'scrape' the data off of the page from some other web
    site to cut down on their data entry. Everything works fine, but I need to
    close the browser (or whatever process holds the browser) to get rid of the
    session. If I use IE Tools->Internet Options to delete cookies and temporary
    files, or delete them myself the session persists??




    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:OyaPcPllDHA.3320@tk2msftngp13.phx.gbl...
    > In an ASP page call:
    >
    > Session.Abandon
    >
    > The cookie is probably not where you thought it was or is hidden from you
    > since cookies *are* how ASP handles sessions.
    >
    > Chris.
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp59llkg3eolc1@corp.supernews.com...
    > I am trying to end a session for a site without having to completely close
    > the browser to end it.
    >
    > When I access the site and log in it works fine. If I log out and in with
    a
    > different account without closing the browser, I get the first session's
    > information. Also, if a open another browser and log in with a different
    > account I get the session from the first browser. I've tried deleting all
    > cookies and any cached pages, but still get the same first session.
    >
    > I created a windows app in .NET and added a browser (control from VB6),
    and
    > have the same problems if I make multiple instances of the browser control
    > inside the app, but I CAN have different session inside the .NET windows
    app
    > than what I have in the IE browsers. They don't seem to cross.
    >
    > How is the session being held if it is not in a cookie or in a cached
    page?
    > I open a new browser and log in from the beginning, so the session can't
    be
    > in the URL, or in a hidden text field??
    >
    > I think I must be missing something on how the sessions are stored??
    >
    > Any help would be greatly appreciated, and I apologize if this is an
    > inappropriate group to post to.
    >
    > -Darrin
    >
    >
    >


    Chris Barber Guest

  6. #5

    Default Re: Ending Session

    That stinks. I still want to think that there must a way since the remote
    server really isn't holding any type of static connection with the client. I
    can't figure out how it is keeping it's session? It has got to be storing it
    somewhere client side.

    Thank you again for your response and the link. It looks like it has quite a
    bit of info.

    I'll see what I can figure out...

    -Darrin


    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:e4d3HNmlDHA.3612@TK2MSFTNGP11.phx.gbl...
    > Ahh, you mean you want to end the session for the remote webserver from
    the
    > client side?
    >
    > [url]http://www.asp101.com/articles/john/sessionsend/default.asp[/url]
    >
    > As far as I know, it's not possible unless you can inform the remote
    > webserver that you want to end the session.
    >
    > Chris.
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp5chqtbt4tg11@corp.supernews.com...
    > Chris,
    >
    > Thank you very much for your response.
    >
    > Unfortunately, it's not my page that I'm accessing. I'm writing an app for
    a
    > company that wants to 'scrape' the data off of the page from some other
    web
    > site to cut down on their data entry. Everything works fine, but I need to
    > close the browser (or whatever process holds the browser) to get rid of
    the
    > session. If I use IE Tools->Internet Options to delete cookies and
    temporary
    > files, or delete them myself the session persists??
    >
    >
    >
    >
    > "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    > news:OyaPcPllDHA.3320@tk2msftngp13.phx.gbl...
    > > In an ASP page call:
    > >
    > > Session.Abandon
    > >
    > > The cookie is probably not where you thought it was or is hidden from
    you
    > > since cookies *are* how ASP handles sessions.
    > >
    > > Chris.
    > >
    > > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > > news:vp59llkg3eolc1@corp.supernews.com...
    > > I am trying to end a session for a site without having to completely
    close
    > > the browser to end it.
    > >
    > > When I access the site and log in it works fine. If I log out and in
    with
    > a
    > > different account without closing the browser, I get the first session's
    > > information. Also, if a open another browser and log in with a different
    > > account I get the session from the first browser. I've tried deleting
    all
    > > cookies and any cached pages, but still get the same first session.
    > >
    > > I created a windows app in .NET and added a browser (control from VB6),
    > and
    > > have the same problems if I make multiple instances of the browser
    control
    > > inside the app, but I CAN have different session inside the .NET windows
    > app
    > > than what I have in the IE browsers. They don't seem to cross.
    > >
    > > How is the session being held if it is not in a cookie or in a cached
    > page?
    > > I open a new browser and log in from the beginning, so the session can't
    > be
    > > in the URL, or in a hidden text field??
    > >
    > > I think I must be missing something on how the sessions are stored??
    > >
    > > Any help would be greatly appreciated, and I apologize if this is an
    > > inappropriate group to post to.
    > >
    > > -Darrin
    > >
    > >
    > >
    >
    >
    >

    Darrin J Olson Guest

  7. #6

    Default Re: Ending Session

    Darrin J Olson wrote:
    > That stinks. I still want to think that there must a way since the
    > remote server really isn't holding any type of static connection with
    > the client. I can't figure out how it is keeping it's session? It has
    > got to be storing it somewhere client side.
    >
    A session ends when the session timeout period expires, or when
    session.abandon is called. The server does not know when a user closes his
    browser, or navigates to another page, or whatever. It only knows whether or
    not it receives http requests containing the appropriate session id or not.

    HTH,
    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  8. #7

    Default Re: Ending Session

    But .. the question was whether or not the session can be reset from the
    client side (eg. delete the relevant cookie so that the http headers will
    not contains the relevant session id).
    I can't find any information about how to do it although I presume it would
    only be possible from outside of IE itself [the cookie delete thing] without
    setting off lots of security warnings. The basic mechanisms for how sessions
    are created, timeout and die are well known and certainly from an ASP point
    of view it's easy to achieve.

    Chris.


    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    Darrin J Olson wrote:
    > That stinks. I still want to think that there must a way since the
    > remote server really isn't holding any type of static connection with
    > the client. I can't figure out how it is keeping it's session? It has
    > got to be storing it somewhere client side.
    >
    A session ends when the session timeout period expires, or when
    session.abandon is called. The server does not know when a user closes his
    browser, or navigates to another page, or whatever. It only knows whether or
    not it receives http requests containing the appropriate session id or not.

    HTH,
    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"



    Chris Barber Guest

  9. #8

    Default Re: Ending Session

    This I understand.

    Here are the facts, and any help you can give would be greatly appreciated!

    1. I am only the client, I do not have access to the server or it's code.
    2. I am not sure what the host is using for session management.
    3. When I close my browser and open a new one, I am given a new session.
    4. When I am authenticated (however it is handled) and go to the login page
    and login with a new account without closing my browser, I get data from the
    first login.
    5. When I open another browser and login with a different account, I get
    data from the first login if the first browser is still open.
    6. If I delete all the cookies and Temporary Internet Files using
    Tools->Internet Options, or manually, I still get data from whatever login I
    used initially with any subsequent logins.
    7. If I add browser controls into a .NET windows application, any subsequent
    logins return data from the initial session login, regardless of wether or
    not I remove/close the first browser control that logged in.
    8. I CAN login and return data from different sessions between the browsers
    using IE and the browser controls in my application, they don't appear to
    communicate the session.

    I've been doing web development for over 6 years, and am a MCP (ASP.NET C#),
    so I have some familiarity, but I don't feel this has anything to do with
    ASP necessarily. I thought that maybe IE was caching the pages on the
    client, but that should reload if I delete any temp files? I also delete any
    cookies and don't see any in the index.dat file? The session always persists
    unless I close my browser???

    If it was URL rewriting or in a hidden field, it should not go across to a
    new browser that was opened, which makes me think either cached pages or a
    cookie. I delete the cached pages and the cookies, but the session remains.

    Again, any help would be greatly appreciated.

    Thanks,
    -Darrin




    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > Darrin J Olson wrote:
    > > That stinks. I still want to think that there must a way since the
    > > remote server really isn't holding any type of static connection with
    > > the client. I can't figure out how it is keeping it's session? It has
    > > got to be storing it somewhere client side.
    > >
    >
    > A session ends when the session timeout period expires, or when
    > session.abandon is called. The server does not know when a user closes his
    > browser, or navigates to another page, or whatever. It only knows whether
    or
    > not it receives http requests containing the appropriate session id or
    not.
    >
    > HTH,
    > Bob Barrows
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >

    Darrin J Olson Guest

  10. #9

    Default Re: Ending Session

    It must have something to with ASP, or you wouldn't be posting here - right?
    :>)

    Session cookies are stored in the client memory. AFAIK, they can't be
    altered or deleted from the client - they expire on timeout or when the
    browser closes.

    Bob Lehmann

    "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    news:vp5pkqh44elnaf@corp.supernews.com...
    > This I understand.
    >
    > Here are the facts, and any help you can give would be greatly
    appreciated!
    >
    > 1. I am only the client, I do not have access to the server or it's code.
    > 2. I am not sure what the host is using for session management.
    > 3. When I close my browser and open a new one, I am given a new session.
    > 4. When I am authenticated (however it is handled) and go to the login
    page
    > and login with a new account without closing my browser, I get data from
    the
    > first login.
    > 5. When I open another browser and login with a different account, I get
    > data from the first login if the first browser is still open.
    > 6. If I delete all the cookies and Temporary Internet Files using
    > Tools->Internet Options, or manually, I still get data from whatever login
    I
    > used initially with any subsequent logins.
    > 7. If I add browser controls into a .NET windows application, any
    subsequent
    > logins return data from the initial session login, regardless of wether or
    > not I remove/close the first browser control that logged in.
    > 8. I CAN login and return data from different sessions between the
    browsers
    > using IE and the browser controls in my application, they don't appear to
    > communicate the session.
    >
    > I've been doing web development for over 6 years, and am a MCP (ASP.NET
    C#),
    > so I have some familiarity, but I don't feel this has anything to do with
    > ASP necessarily. I thought that maybe IE was caching the pages on the
    > client, but that should reload if I delete any temp files? I also delete
    any
    > cookies and don't see any in the index.dat file? The session always
    persists
    > unless I close my browser???
    >
    > If it was URL rewriting or in a hidden field, it should not go across to a
    > new browser that was opened, which makes me think either cached pages or a
    > cookie. I delete the cached pages and the cookies, but the session
    remains.
    >
    > Again, any help would be greatly appreciated.
    >
    > Thanks,
    > -Darrin
    >
    >
    >
    >
    > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > > Darrin J Olson wrote:
    > > > That stinks. I still want to think that there must a way since the
    > > > remote server really isn't holding any type of static connection with
    > > > the client. I can't figure out how it is keeping it's session? It has
    > > > got to be storing it somewhere client side.
    > > >
    > >
    > > A session ends when the session timeout period expires, or when
    > > session.abandon is called. The server does not know when a user closes
    his
    > > browser, or navigates to another page, or whatever. It only knows
    whether
    > or
    > > not it receives http requests containing the appropriate session id or
    > not.
    > >
    > > HTH,
    > > Bob Barrows
    > > --
    > > Microsoft MVP - ASP/ASP.NET
    > > Please reply to the newsgroup. This email account is my spam trap so I
    > > don't check it very often. If you must reply off-line, then remove the
    > > "NO SPAM"
    > >
    > >
    >
    >

    Bob Lehmann Guest

  11. #10

    Default Re: Ending Session

    Thanks Bob, that would explain a lot.

    As far as the newsgroup, I wasn't sure where to post it since it involved a
    few different things, and I may not have had the potential of querying such
    intelligent and knowledgeable folks if I used a different one. ;-)

    Thanks again to both you and Chris for your help.
    -Darrin




    "Bob Lehmann" <nospam@dontbotherme.zzz> wrote in message
    news:%23e$XgwnlDHA.976@tk2msftngp13.phx.gbl...
    > It must have something to with ASP, or you wouldn't be posting here -
    right?
    > :>)
    >
    > Session cookies are stored in the client memory. AFAIK, they can't be
    > altered or deleted from the client - they expire on timeout or when the
    > browser closes.
    >
    > Bob Lehmann
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp5pkqh44elnaf@corp.supernews.com...
    > > This I understand.
    > >
    > > Here are the facts, and any help you can give would be greatly
    > appreciated!
    > >
    > > 1. I am only the client, I do not have access to the server or it's
    code.
    > > 2. I am not sure what the host is using for session management.
    > > 3. When I close my browser and open a new one, I am given a new session.
    > > 4. When I am authenticated (however it is handled) and go to the login
    > page
    > > and login with a new account without closing my browser, I get data from
    > the
    > > first login.
    > > 5. When I open another browser and login with a different account, I get
    > > data from the first login if the first browser is still open.
    > > 6. If I delete all the cookies and Temporary Internet Files using
    > > Tools->Internet Options, or manually, I still get data from whatever
    login
    > I
    > > used initially with any subsequent logins.
    > > 7. If I add browser controls into a .NET windows application, any
    > subsequent
    > > logins return data from the initial session login, regardless of wether
    or
    > > not I remove/close the first browser control that logged in.
    > > 8. I CAN login and return data from different sessions between the
    > browsers
    > > using IE and the browser controls in my application, they don't appear
    to
    > > communicate the session.
    > >
    > > I've been doing web development for over 6 years, and am a MCP (ASP.NET
    > C#),
    > > so I have some familiarity, but I don't feel this has anything to do
    with
    > > ASP necessarily. I thought that maybe IE was caching the pages on the
    > > client, but that should reload if I delete any temp files? I also delete
    > any
    > > cookies and don't see any in the index.dat file? The session always
    > persists
    > > unless I close my browser???
    > >
    > > If it was URL rewriting or in a hidden field, it should not go across to
    a
    > > new browser that was opened, which makes me think either cached pages or
    a
    > > cookie. I delete the cached pages and the cookies, but the session
    > remains.
    > >
    > > Again, any help would be greatly appreciated.
    > >
    > > Thanks,
    > > -Darrin
    > >
    > >
    > >
    > >
    > > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > > news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > > > Darrin J Olson wrote:
    > > > > That stinks. I still want to think that there must a way since the
    > > > > remote server really isn't holding any type of static connection
    with
    > > > > the client. I can't figure out how it is keeping it's session? It
    has
    > > > > got to be storing it somewhere client side.
    > > > >
    > > >
    > > > A session ends when the session timeout period expires, or when
    > > > session.abandon is called. The server does not know when a user closes
    > his
    > > > browser, or navigates to another page, or whatever. It only knows
    > whether
    > > or
    > > > not it receives http requests containing the appropriate session id or
    > > not.
    > > >
    > > > HTH,
    > > > Bob Barrows
    > > > --
    > > > Microsoft MVP - ASP/ASP.NET
    > > > Please reply to the newsgroup. This email account is my spam trap so I
    > > > don't check it very often. If you must reply off-line, then remove the
    > > > "NO SPAM"
    > > >
    > > >
    > >
    > >
    >
    >

    Darrin J Olson Guest

  12. #11

    Default Re: Ending Session

    Thanks for the info Bob.

    I was beginning to suspect the same although all information I've ever seen
    seems to indicate (indirectly) that session persistence was to do with
    cookies. However, on thinking about it, I now see that the information I
    have read says that 'ASP sessions require that cookies be enabled', *not*
    that IE stores the session id *as* a cookie.

    So, that would explain the majority of stuff but perhaps not the multiple
    browsers getting the same session data scenario which I have no idea why
    that could be happening unless both (or more) instances of IE are in fact
    instances of a class from an ActiveX EXE (thus all instances could be
    getting access to the same common 'session' information dependant on the
    settings for the class). NB: MS Word work like this in that Word.exe is in
    fact an ActiveXEXE Server.

    Chris.

    "Bob Lehmann" <nospam@dontbotherme.zzz> wrote in message
    news:%23e$XgwnlDHA.976@tk2msftngp13.phx.gbl...
    It must have something to with ASP, or you wouldn't be posting here - right?
    :>)

    Session cookies are stored in the client memory. AFAIK, they can't be
    altered or deleted from the client - they expire on timeout or when the
    browser closes.

    Bob Lehmann

    "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    news:vp5pkqh44elnaf@corp.supernews.com...
    > This I understand.
    >
    > Here are the facts, and any help you can give would be greatly
    appreciated!
    >
    > 1. I am only the client, I do not have access to the server or it's code.
    > 2. I am not sure what the host is using for session management.
    > 3. When I close my browser and open a new one, I am given a new session.
    > 4. When I am authenticated (however it is handled) and go to the login
    page
    > and login with a new account without closing my browser, I get data from
    the
    > first login.
    > 5. When I open another browser and login with a different account, I get
    > data from the first login if the first browser is still open.
    > 6. If I delete all the cookies and Temporary Internet Files using
    > Tools->Internet Options, or manually, I still get data from whatever login
    I
    > used initially with any subsequent logins.
    > 7. If I add browser controls into a .NET windows application, any
    subsequent
    > logins return data from the initial session login, regardless of wether or
    > not I remove/close the first browser control that logged in.
    > 8. I CAN login and return data from different sessions between the
    browsers
    > using IE and the browser controls in my application, they don't appear to
    > communicate the session.
    >
    > I've been doing web development for over 6 years, and am a MCP (ASP.NET
    C#),
    > so I have some familiarity, but I don't feel this has anything to do with
    > ASP necessarily. I thought that maybe IE was caching the pages on the
    > client, but that should reload if I delete any temp files? I also delete
    any
    > cookies and don't see any in the index.dat file? The session always
    persists
    > unless I close my browser???
    >
    > If it was URL rewriting or in a hidden field, it should not go across to a
    > new browser that was opened, which makes me think either cached pages or a
    > cookie. I delete the cached pages and the cookies, but the session
    remains.
    >
    > Again, any help would be greatly appreciated.
    >
    > Thanks,
    > -Darrin
    >
    >
    >
    >
    > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > > Darrin J Olson wrote:
    > > > That stinks. I still want to think that there must a way since the
    > > > remote server really isn't holding any type of static connection with
    > > > the client. I can't figure out how it is keeping it's session? It has
    > > > got to be storing it somewhere client side.
    > > >
    > >
    > > A session ends when the session timeout period expires, or when
    > > session.abandon is called. The server does not know when a user closes
    his
    > > browser, or navigates to another page, or whatever. It only knows
    whether
    > or
    > > not it receives http requests containing the appropriate session id or
    > not.
    > >
    > > HTH,
    > > Bob Barrows
    > > --
    > > Microsoft MVP - ASP/ASP.NET
    > > Please reply to the newsgroup. This email account is my spam trap so I
    > > don't check it very often. If you must reply off-line, then remove the
    > > "NO SPAM"
    > >
    > >
    >
    >


    Chris Barber Guest

  13. #12

    Default Re: Ending Session

    I'd say that the implementation of the sessions *is* - predominantly for
    this discussion - ASP but the surrounding technologies may not be ... I
    still reckon ASP was the right choice.

    LoL, and I still managed to learn something.

    Chris.

    "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    news:vp5s0vli88hd60@corp.supernews.com...
    Thanks Bob, that would explain a lot.

    As far as the newsgroup, I wasn't sure where to post it since it involved a
    few different things, and I may not have had the potential of querying such
    intelligent and knowledgeable folks if I used a different one. ;-)

    Thanks again to both you and Chris for your help.
    -Darrin




    "Bob Lehmann" <nospam@dontbotherme.zzz> wrote in message
    news:%23e$XgwnlDHA.976@tk2msftngp13.phx.gbl...
    > It must have something to with ASP, or you wouldn't be posting here -
    right?
    > :>)
    >
    > Session cookies are stored in the client memory. AFAIK, they can't be
    > altered or deleted from the client - they expire on timeout or when the
    > browser closes.
    >
    > Bob Lehmann
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp5pkqh44elnaf@corp.supernews.com...
    > > This I understand.
    > >
    > > Here are the facts, and any help you can give would be greatly
    > appreciated!
    > >
    > > 1. I am only the client, I do not have access to the server or it's
    code.
    > > 2. I am not sure what the host is using for session management.
    > > 3. When I close my browser and open a new one, I am given a new session.
    > > 4. When I am authenticated (however it is handled) and go to the login
    > page
    > > and login with a new account without closing my browser, I get data from
    > the
    > > first login.
    > > 5. When I open another browser and login with a different account, I get
    > > data from the first login if the first browser is still open.
    > > 6. If I delete all the cookies and Temporary Internet Files using
    > > Tools->Internet Options, or manually, I still get data from whatever
    login
    > I
    > > used initially with any subsequent logins.
    > > 7. If I add browser controls into a .NET windows application, any
    > subsequent
    > > logins return data from the initial session login, regardless of wether
    or
    > > not I remove/close the first browser control that logged in.
    > > 8. I CAN login and return data from different sessions between the
    > browsers
    > > using IE and the browser controls in my application, they don't appear
    to
    > > communicate the session.
    > >
    > > I've been doing web development for over 6 years, and am a MCP (ASP.NET
    > C#),
    > > so I have some familiarity, but I don't feel this has anything to do
    with
    > > ASP necessarily. I thought that maybe IE was caching the pages on the
    > > client, but that should reload if I delete any temp files? I also delete
    > any
    > > cookies and don't see any in the index.dat file? The session always
    > persists
    > > unless I close my browser???
    > >
    > > If it was URL rewriting or in a hidden field, it should not go across to
    a
    > > new browser that was opened, which makes me think either cached pages or
    a
    > > cookie. I delete the cached pages and the cookies, but the session
    > remains.
    > >
    > > Again, any help would be greatly appreciated.
    > >
    > > Thanks,
    > > -Darrin
    > >
    > >
    > >
    > >
    > > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > > news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > > > Darrin J Olson wrote:
    > > > > That stinks. I still want to think that there must a way since the
    > > > > remote server really isn't holding any type of static connection
    with
    > > > > the client. I can't figure out how it is keeping it's session? It
    has
    > > > > got to be storing it somewhere client side.
    > > > >
    > > >
    > > > A session ends when the session timeout period expires, or when
    > > > session.abandon is called. The server does not know when a user closes
    > his
    > > > browser, or navigates to another page, or whatever. It only knows
    > whether
    > > or
    > > > not it receives http requests containing the appropriate session id or
    > > not.
    > > >
    > > > HTH,
    > > > Bob Barrows
    > > > --
    > > > Microsoft MVP - ASP/ASP.NET
    > > > Please reply to the newsgroup. This email account is my spam trap so I
    > > > don't check it very often. If you must reply off-line, then remove the
    > > > "NO SPAM"
    > > >
    > > >
    > >
    > >
    >
    >


    Chris Barber Guest

  14. #13

    Default Re: Ending Session

    Chris,

    I think you are on the right track. That would also explain why when I add
    the activeX browser controls to my .NET app it holds a different session and
    must use a different cookie in memory than what the browsers out of the OS
    do. It must kind of hold a common cookie per process per domain.

    Thanks!

    -Darrin




    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:OrF%239eolDHA.1960@TK2MSFTNGP12.phx.gbl...
    > Thanks for the info Bob.
    >
    > I was beginning to suspect the same although all information I've ever
    seen
    > seems to indicate (indirectly) that session persistence was to do with
    > cookies. However, on thinking about it, I now see that the information I
    > have read says that 'ASP sessions require that cookies be enabled', *not*
    > that IE stores the session id *as* a cookie.
    >
    > So, that would explain the majority of stuff but perhaps not the multiple
    > browsers getting the same session data scenario which I have no idea why
    > that could be happening unless both (or more) instances of IE are in fact
    > instances of a class from an ActiveX EXE (thus all instances could be
    > getting access to the same common 'session' information dependant on the
    > settings for the class). NB: MS Word work like this in that Word.exe is in
    > fact an ActiveXEXE Server.
    >
    > Chris.
    >
    > "Bob Lehmann" <nospam@dontbotherme.zzz> wrote in message
    > news:%23e$XgwnlDHA.976@tk2msftngp13.phx.gbl...
    > It must have something to with ASP, or you wouldn't be posting here -
    right?
    > :>)
    >
    > Session cookies are stored in the client memory. AFAIK, they can't be
    > altered or deleted from the client - they expire on timeout or when the
    > browser closes.
    >
    > Bob Lehmann
    >
    > "Darrin J Olson" <darrin.j.olson@sio.midco.net> wrote in message
    > news:vp5pkqh44elnaf@corp.supernews.com...
    > > This I understand.
    > >
    > > Here are the facts, and any help you can give would be greatly
    > appreciated!
    > >
    > > 1. I am only the client, I do not have access to the server or it's
    code.
    > > 2. I am not sure what the host is using for session management.
    > > 3. When I close my browser and open a new one, I am given a new session.
    > > 4. When I am authenticated (however it is handled) and go to the login
    > page
    > > and login with a new account without closing my browser, I get data from
    > the
    > > first login.
    > > 5. When I open another browser and login with a different account, I get
    > > data from the first login if the first browser is still open.
    > > 6. If I delete all the cookies and Temporary Internet Files using
    > > Tools->Internet Options, or manually, I still get data from whatever
    login
    > I
    > > used initially with any subsequent logins.
    > > 7. If I add browser controls into a .NET windows application, any
    > subsequent
    > > logins return data from the initial session login, regardless of wether
    or
    > > not I remove/close the first browser control that logged in.
    > > 8. I CAN login and return data from different sessions between the
    > browsers
    > > using IE and the browser controls in my application, they don't appear
    to
    > > communicate the session.
    > >
    > > I've been doing web development for over 6 years, and am a MCP (ASP.NET
    > C#),
    > > so I have some familiarity, but I don't feel this has anything to do
    with
    > > ASP necessarily. I thought that maybe IE was caching the pages on the
    > > client, but that should reload if I delete any temp files? I also delete
    > any
    > > cookies and don't see any in the index.dat file? The session always
    > persists
    > > unless I close my browser???
    > >
    > > If it was URL rewriting or in a hidden field, it should not go across to
    a
    > > new browser that was opened, which makes me think either cached pages or
    a
    > > cookie. I delete the cached pages and the cookies, but the session
    > remains.
    > >
    > > Again, any help would be greatly appreciated.
    > >
    > > Thanks,
    > > -Darrin
    > >
    > >
    > >
    > >
    > > "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    > > news:uycLx8mlDHA.1672@TK2MSFTNGP09.phx.gbl...
    > > > Darrin J Olson wrote:
    > > > > That stinks. I still want to think that there must a way since the
    > > > > remote server really isn't holding any type of static connection
    with
    > > > > the client. I can't figure out how it is keeping it's session? It
    has
    > > > > got to be storing it somewhere client side.
    > > > >
    > > >
    > > > A session ends when the session timeout period expires, or when
    > > > session.abandon is called. The server does not know when a user closes
    > his
    > > > browser, or navigates to another page, or whatever. It only knows
    > whether
    > > or
    > > > not it receives http requests containing the appropriate session id or
    > > not.
    > > >
    > > > HTH,
    > > > Bob Barrows
    > > > --
    > > > Microsoft MVP - ASP/ASP.NET
    > > > Please reply to the newsgroup. This email account is my spam trap so I
    > > > don't check it very often. If you must reply off-line, then remove the
    > > > "NO SPAM"
    > > >
    > > >
    > >
    > >
    >
    >
    >

    Darrin J Olson Guest

  15. #14

    Default Re: Ending Session

    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:OrF#9eolDHA.1960@TK2MSFTNGP12.phx.gbl...
    > have read says that 'ASP sessions require that cookies be enabled',
    *not*
    > that IE stores the session id *as* a cookie.
    It is specifically a "Session Cookie", they are special and only exist
    in memory (aka Temporary Cookies). They are not the same thing as
    other Cookies. It is two different animals.
    > So, that would explain the majority of stuff but perhaps not the
    multiple
    > browsers getting the same session data scenario which I have no idea
    why

    Multiple Browser *Windows* get the same session, multiple Browser
    *instances* do not. Hitting "CTRL-N" pops up a new Window not a new
    "Browser". To get a new browse you must re-execute the excutable
    (iexplorer.exe).

    --

    Phillip Windell [CCNA, MVP, MCP]
    [email]pwindell@wandtv.com[/email]
    WAND-TV (ABC Affiliate)
    [url]www.wandtv.com[/url]


    Phillip Windell Guest

  16. #15

    Default Re: Ending Session

    I've never really tried that hard to find the exact circumstances so thanks
    for the info, it's much appreciated.

    Chris.

    "Phillip Windell" <pwindell{at}wandtv*d0t*com> wrote in message
    news:%23J6waKzlDHA.2436@TK2MSFTNGP09.phx.gbl...
    "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
    news:OrF#9eolDHA.1960@TK2MSFTNGP12.phx.gbl...
    > have read says that 'ASP sessions require that cookies be enabled',
    *not*
    > that IE stores the session id *as* a cookie.
    It is specifically a "Session Cookie", they are special and only exist
    in memory (aka Temporary Cookies). They are not the same thing as
    other Cookies. It is two different animals.
    > So, that would explain the majority of stuff but perhaps not the
    multiple
    > browsers getting the same session data scenario which I have no idea
    why

    Multiple Browser *Windows* get the same session, multiple Browser
    *instances* do not. Hitting "CTRL-N" pops up a new Window not a new
    "Browser". To get a new browse you must re-execute the excutable
    (iexplorer.exe).

    --

    Phillip Windell [CCNA, MVP, MCP]
    [email]pwindell@wandtv.com[/email]
    WAND-TV (ABC Affiliate)
    [url]www.wandtv.com[/url]



    Chris Barber Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139