Use a struct delete.

<cfset tempvariable = StructClear(session)>


where session is the name of the entire session group.

or you can do it with an induvidual variable like this


<cfset StructDelete(Session, "username")>


HTH

Kevin

~~~~~~~~~~~~~~~~~
Kevin Mansel
Senior Web Developer
Fox Communications
[EMAIL PROTECTED]
DL : 425-649-1321
C : 425-346-7221



-----Original Message-----
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 10:03 AM
To: CF-Talk
Subject: Expriing a session


Hi everyone.
I am having no luck expiring a users session. Here is what I am attemnpting:
User logs in.. All is fine, a session variable is set to "loggedin". When
the user clicks "log out" I call a template that sets the value of the
session var to "loggedout" and then redirect them to a new page. The problem
is that if they hit the browsers back button they can still get to the page
they were viewing when they logged on. I have tried using cflocation to send
them to the enw page and I even check for the value of the sesison var
before displaying the page that is protected via the login...

Any ideas?


Michael T. Tangorre

============================
Resident Assistant - Brick
Web Applications Developer
A.U. Webteam Slave  :-)
AIM: CrazyFlash4

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to