Terry,

The only thing you're doing is setting the timeout for a bot to one second. 
They still create a session, but the session is destroyed immediately. The 
whole problem is that sessions are created for each bot hit and exist until 
the session times out. If you have one bot hitting ten pages, that's ten 
sessions. If you have ten bots hitting ten pages, that's one hundred 
sessions. If the session lasts for five minutes, then you can see how it 
will simply ramp up RAM as the bots come in.

House of Fusion gets tens of thousands of bot hits a day, and by using this 
technique, we show no loss of memory or performance.

Judith Dinowitz
Editor-in-Chief: Fusion Authority
http://www.fusionauthority.com

----- Original Message ----- 
From: "Terry Ford" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Wednesday, June 06, 2007 10:53 PM
Subject: Re: Reducing phantom sessions?


> It seems that Michael and Ben used a similar solution.
>
> The dynamic setting of sessionmanagement=YES|NO depending on user agent 
> looks good in theory.
>
> However, when I switch to that, I get this error all over the place when 
> those bot user agents start hitting templates:
>
> "The requested scope session has not been enabled.Before session variables 
> can be used, the session state management system must be enabled using the 
> CFAPPLICATION tag."
>
> Now I *do* have every reference to a session variable wrapped in an 
> existence test.
>
> However, it seems that if you have sessionmanagement=NO then even TESTING 
> for the existence of a session variable throws the above error.  i.e. 
> isdefined("session.username") throws the above error.  That doesn't make a 
> whole lot of sense to me.
>
> Any ideas how to bypass the error above without having to kludge all sorts 
> of stuff around every single test of session variable existence?
>
> Terry
>
>
>>Terry,
>>
>>Michael had a similar problem; we get indexed all the time by Google and
>>other bots. He posted the problem and his solutions at
>>http://www.blogoffusion.com/index.cfm/2005/11/28/pseudomemory-leak
>>
>>Judith Dinowitz
>>Editor-in-Chief: Fusion Authority
>>http://www.fusionauthority.com
>>
>>----- Original Message ----- 
>>
>>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280321
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to