Logout Syntax Error
Hi,
I working on a website with a login and logout set up. I have my login page working fine but I'm having an issue with the logout page. I have it set up so once I log in a "sign off" link appears, taking the user to the logout page. This is my logout.cfm code:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<cfset tmp=StructDelete(session, "username")>
<cflocation url="/login.cfm?lo" addtoken="no">
</body>
</html>
Whenever I run this page, I get this error message;
Variable SESSION is undefined.
Does anyone know what I'm doing wrong?
Thanks in advance for the help.
