I'd like to send my user to the login page when their session
expires and/or if they try to click on anything after the session
has expired. Is this possible in the application.cfc using
onSessionEnd? If so, how could I do it? If not, what's an
alternative way to do this?
Try the code below. Place it in your application.cfm
Since application.cfm is always called on every page, you
users will be redirected to your login page once the session has
ended. I user session.userID as an example. You can use any session
variable that you have previously set up.
I tried the same code in my application.cfm file. But what it
does is stopped the loading of the login page(index.cfm). I give
you a brief overview of my code