2 Replies Latest reply on Sep 14, 2006 11:34 AM by Newsgroup_User

    How to Kill a Session

      When a user logs out of an application with session variables enabled, I can basically delete the contents of the session, however, session tracker will show the id of that session with the session structure empty.

      The problem is that if a user logs out and then attempts to log back in using the same browser instance, CF sees the session as active and doesn't execute the login procedure. If they close their browser and re-open it, then CF treats it as a new login.

      Is there a way to completely kill a session so that the user can login using the same browser as they logged out before CF finally kills off the dead session some time later?
        • 1. Re: How to Kill a Session
          azadisaryev Level 1
          you should try searching this forum for an answer before posting a question. run a search on "cflogin" and you will be presented with SEVERAL solutions, all with good explanations.
          • 2. Re: How to Kill a Session
            Level 7
            Tried this?

            <cfset StructDelete(SESSION, "sessionName")>

            --
            Ken Ford
            Adobe Community Expert


            "CNaser" <webforumsuser@macromedia.com> wrote in message
            news:eebn73$k7a$1@forums.macromedia.com...
            > When a user logs out of an application with session variables enabled, I
            > can
            > basically delete the contents of the session, however, session tracker
            > will
            > show the id of that session with the session structure empty.
            >
            > The problem is that if a user logs out and then attempts to log back in
            > using
            > the same browser instance, CF sees the session as active and doesn't
            > execute
            > the login procedure. If they close their browser and re-open it, then CF
            > treats it as a new login.
            >
            > Is there a way to completely kill a session so that the user can login
            > using
            > the same browser as they logged out before CF finally kills off the dead
            > session some time later?
            >