I’ve seen quite a few approaches taken to end a session in Coldfusion (note: we’re not going to talk about j2eeSessions). They range from deleting cookies, clearing out the session scope, setting the session timeout to 1 second or a combination of them. While they can be affective they all have certain disadvantages.
I’ve discovered another way to stop a session completely, without using any of the previously mentioned methods. I’ll start off by showing you the current ways that I’m aware of and explaining the disadvantages they can have and then show my new approach.