Mike, have you not already have logout code I developed for you for this
purpose?

Share that as I'd be interested in learning, at least with CFMX6.1, it is
the best method for terminating a session.

Cheers!

PT
==
Peter Tilbrook
ColdFusion Applications Developer
ColdGen Internet Solutions
Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com
4/73 Tharwa Road
Queanbeyan, NSW, 2620
AUSTRALIA  

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark M
Sent: Thursday, 8 April 2004 2:00 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Is this any way to end sessions?

Mike - 

I can honestly say I have never seen anyone ever use a cfapplication tag
like that.

I'd just get rid of it.

That's just weird.

Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


Quoting Mike Kear <[EMAIL PROTECTED]>:

> I inherited an application this week and I have to make some changes 
> to it.� I noticed that the previous programmer closes the session when 
> the user logs out by deleting the struct key in the session scope, and 
> by expiring the cookie NOW, which I'd expect, pretty standard, that.
> But he also has a CFAPPLICATION tag there too.� I havent' seen that 
> before and I wondered if that was an accepted way to log a user out 
> and kill his session.�� I would have thought it would kill everyone's 
> session wouldn't it - all the users on the application would be logged 
> out simultaneously wouldnt they?
> Here's what is in the logout routine:
> <!---Logout --->
> <cfif
> isDefined("url.logout")>
> �<cfset
> structdelete(SESSION,"loggedin")>
> �<cfapplication
> name="appname" sessionmanagement="Yes"
> sessiontimeout="#CreateTimeSpan(0,0,0,0)#">
> �<cflocation
> url="default.cfm">
> </cfif>
> 
> Cheers
> Mike Kear
> AFP Webworks
> Windsor, NSW, Australia
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To 
> unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia 
> http://www.mxdu.com/ + 24-25 February, 2004
> 
> 
> 

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To
unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004





---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to