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. Continue reading →
I’m pretty excited about this post and it’s all the fault of Adobe’s Claude Englebert. When I attended his presentation on CF9′s Server Manager at SOTR2010, he briefly mentioned that you can add your own extensions to the CFIDE Administrator. This was a small but powerful fact that I hadn’t taken notice of before and he got part of my brain ticking over on what I could possibly do with that fact.
Certain ColdFusion applications are written in such a way that after the session times out, the user is also logged out. This is sometimes to secure the application from others accessing the computer, while the real user is away from their desk. If this is the case, it’s nice to let the user know how long they’ve got left before they’re logged out due to inactivity. Continue reading →