My gut feeling says that calling this function will not reset the session variables. You could try it out and see what happens to your session though.
If it doesn't work, perhaps assigning a random name to the application would reset the session variables? I think you can do this by setting the application.applicationName (this.applicationName?) variable but am unsure if it would actually work. You could probably look it up in the livedocs. Joel -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Mike Kear Sent: Tuesday, 12 December 2006 11:18 AM To: [email protected] Subject: [cfaussie] Re: Restarting the CFAPP from the URL Thanks Joel, that's what i wanted. Starting the application again also kills all sessions doesnt it? so there's no need to also call the onSessionStart() method? Cheers Mike Kear On 12/12/06, Joel Cass <[EMAIL PROTECTED]> wrote: > > in the onRequestStart handler, you can add some code to this effect: > > <!--- RENEW APPLICATION VARIABLES ---> > <cfif structKeyExists(URL, "reset") AND URL.reset IS "YES"> > <cfset this.onApplicationStart()> > </cfif> > > That should do the trick > > Joel > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Behalf Of Mike Kear > Sent: Tuesday, 12 December 2006 11:05 AM > To: [email protected] > Subject: [cfaussie] Restarting the CFAPP from the URL > > > > how do you folks do a reset of the application if you're using > Application.cfc? > > What i mean is if you have http://domain.com.au/index.cfm?reset=yes, > how do you handle that resetting in the Application.cfc file? (not > application.cfm - i've been doing that fine for ages .. its the .cfc > version I'm asking about) > > In the past I've done the clumsy way of just renaming the app from > MyApp0001 to MyApp0002 etc and uploading a new Application.cfc but > while that works fine, that's not the best way of doing it. > > -- > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > > > > > > -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
