Thanks, from your email and Ian's, I figured out how to do it.  At the
top of my application.cfm ,I've got the line <cfset set_session =
cgi.http_user_agent neq "CFSCHEDULE">  works perfectly.  I had no idea
you could set the session management on the fly.  I figured as soon as
you turned off session management, it would turn off all active
sessions.

thanks again.

On 5/2/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > I was just experimenting around with the unsupported
> > sessiontracker
> > object and was surprised to see that my scheduled task was
> > creating a
> > session every 3 minutes when it ran.  Considering my
> > session timeouts
> > timeouts are set at 4 hours, that's a lot of extraneous
> > sessions held
> > in memory.  What can I do to keep this from happening?
> > I'd put
> > another application.cfm file in the task subdir, but I
> > need objects
> > from the root application.cfm to be instantiated.  Is
> > there a way to
> > specify to kill the current session?
> 
> > Thanks
> 
> > Marlon
> 
> Add this to all your scheduled tasks:
> 
> &scheduled=true
> 
> then this in your application.cfm
> 
> <cfparam name="url.scheduled" type="boolean" default="false">
> <cfapplication sessionmanagement="#not url.scheduled#">
> 
> Just make sure your scheduled task pages don't reference any session
> variables.
> 
> Or... optionally, you could explicitly declare a cftoken & cfid pair
> in the scheduled task url's, which would cause them all to share a
> single session.
> 
> Neither of which I've tested, just throwing out ideas.
> 
> s. isaac dealey   954.522.6080
> new epoch : isn't it time for a change?
> 
> add features without fixtures with
> the onTap open source framework
> 
> http://www.fusiontap.com
> http://coldfusion.sys-con.com/author/4806Dealey.htm
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205302
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to