You could store a session variable like this:
<cfparam name="session.currentpage" default="">
<cfparam name="session.currentqs" default="">
<cfif session.currentpage neq cgi.script_name and session.currentqs neq
cgi.query_string>
<cfset session.currentpage = cgi.script_name>
<cfset session.currentqs = cgi.query_string>
<cfelse>
<cfset StructClear(Session)>
</cfif>
Test this... It may not necessarily always work if you use the post method
and the form action is the same as the page with the form.
-----Original Message-----
From: Kris Pilles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 1:21 PM
To: CF-Talk
Subject: Session Variables?
Is there anyway for me to set something up so if the user hits the refresh
button.... Either all of my session variables are erased or a session
variable is declared telling me refresh was hit...
Or even if I could be aware that the user hit refresh so I can test for my
session variables would work...
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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