Thanks Raymond, that'll help speed things up!

Joshua Miller
Head Programmer / IT Manager
Garrison Enterprises Inc.
www.garrisonenterprises.net
[EMAIL PROTECTED]
(704) 569-9044 ext. 254
 
************************************************************************
*************
Any views expressed in this message are those of the individual sender,
except where the sender states them to be the views of 
Garrison Enterprises Inc.
 
This e-mail is intended only for the individual or entity to which it is
addressed and contains information that is private and confidential. If
you are not the intended recipient you are hereby notified that any
dissemination, distribution or copying is strictly prohibited. If you 
have received this e-mail in error please delete it immediately and
advise us by return e-mail to [EMAIL PROTECTED]
************************************************************************
*************


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 2:07 PM
To: CF-Talk
Subject: RE: Logging out of application


You know that you don't need to get the structKeyList before the loop,
right? You can do this instead:

<cfloop item="key" collection="#session#">

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Joshua Miller [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 12:24 PM
> To: CF-Talk
> Subject: RE: Logging out of application
> 
> 
> This is what I do on the Logout page:
> 
> 
>       <CFIF NOT StructISEmpty(SESSION)> 
>               <CFSET safelist = "List,Of,Variables,To,Leave,Intact">
>               <CFSET keysToStruct = StructKeyList(SESSION,",")>
>               <!--- Kill SESSION Variables --->
>               <CFLOOP INDEX="ListElement" LIST="#keysToStruct#">
>               
>                       <CFIF
> ListContainsNoCase(safelist,ListElement,",")>
>                               <CFSET
> tmp=#StructDelete(SESSION,"#ListElement#",TRUE)#>
>                       </CFIF>                                         
>                       
>               </CFLOOP>
>               <!--- Kill SESSION Variables --->
> 
>               <!--- Relocate --->
>       
> <cfoutput><script>document.location.href="#attributes.relocate
> #";</scrip
> t></cfoutput>
>               <!--- Relocate --->
>       </CFIF>
> 
> 
> Joshua Miller
> Head Programmer / IT Manager
> Garrison Enterprises Inc.
> www.garrisonenterprises.net [EMAIL PROTECTED]
> (704) 569-9044 ext. 254
>  
> **************************************************************
> **********
> *************
> Any views expressed in this message are those of the
> individual sender, except where the sender states them to be 
> the views of 
> Garrison Enterprises Inc.
>  
> This e-mail is intended only for the individual or entity to
> which it is addressed and contains information that is 
> private and confidential. If you are not the intended 
> recipient you are hereby notified that any dissemination, 
> distribution or copying is strictly prohibited. If you 
> have received this e-mail in error please delete it 
> immediately and advise us by return e-mail to 
> [EMAIL PROTECTED]
> **************************************************************
> **********
> *************
> 
> 
> -----Original Message-----
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 27, 2003 1:03 PM
> To: CF-Talk
> Subject: Re: Logging out of application
> 
> 
> I am not sure if this will work but try CFHEADER
> 
> <cfheader name="location" value = "someurl.html">
> <cfheader statusCode = "302" statusText = "Document Moved.">
> 
> Let us know
> Thanks
> Paul Giesenhagen
> QuillDesign
> 
> ----- Original Message -----
> From: "FlashGuy" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, February 27, 2003 11:58 AM
> Subject: Logging out of application
> 
> 
> > HI,
> >
> > I have a "logout" button in my application. When clicked I want to 
> > sent
> the user back to the login screen. This works just fine. The
> problem I'm having is if I click on the "back"
> > button in IE I'm able to go back to that page. I don't want this to
> happen. How can I "clear" all session varaibles etc.?
> >
> > This is what I have in my logout.cfm file:
> >
> >
> > <cfif IsDefined("Cookie.CFID") AND
> IsDefined("Cookie.CFTOKEN")> <cfset
> 
> > localCFID = Cookie.CFID> <cfset localCFToken = Cookie.CFTOKEN>
> > <cfcookie name="CFID" value="#localCFID#"> <cfcookie name="CFTOKEN" 
> > value="#localCFTOKEN#"> </cfif>
> >
> >
> > <CFLOCATION URL="/website/secure/index.htm">
> >
> > The "index.htm" is my login (authentication) template.
> >
> >
> >
> >
> > ---------------------------------------------------
> > Colonel Nathan R. Jessop
> > Commanding Officer
> > Marine Ground Forces
> > Guatanamo Bay, Cuba
> > ---------------------------------------------------
> >
> >
> >
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to