I am trying to kill all session variables when the user logs out. On Logout, I am taking the user back to the Login Screen and I want to prevent him from going back into the application by clicking on the Back button of the browser.
I have the following code in my Logout.cfm, which is giving me an error:
<CFSET d = StructDelete "#SESSION.Username#", "True">
<CFLOCATION url="Login.cfm">
I am trying to use the StructDelete function to kill my session variable, although I am not using any structures. This is giving me an error and is also not preventing the user from going back into the application.
Can someone please tell me what could be wrong and how can I kill my session variable?
Thanks a lot.
I have the following code in my Logout.cfm, which is giving me an error:
<CFSET d = StructDelete "#SESSION.Username#", "True">
<CFLOCATION url="Login.cfm">
I am trying to use the StructDelete function to kill my session variable, although I am not using any structures. This is giving me an error and is also not preventing the user from going back into the application.
Can someone please tell me what could be wrong and how can I kill my session variable?
Thanks a lot.