>Why do you have locks? CF single threads these methods automatically.
>Secondly, I'd get rid of the cfreturn even though it isn't doing
>anything. Lastly, try renaming your application temporarily. That
>would force new sessions to be created.
>
>On Tue, May 27, 2008 at 11:35 AM, Carl V
>>
Ray,
Thank you for responding. The lock was just there for troubleshooting. I
removed it. I also removed the return, and renamed the application. My
variable still is not being initialized.
Some further information - in my OnRequestStart function I check the URL
variable for the presence of "restart=true". If it is found, it runs the
OnApplicationStart and OnSessionStart functions to reinitialize the application.
Snippet from OnRequestStart function:
<!--- If URL parameter "restart=true" is passed, reinitialize
application and session variables --->
<cfif (UCase(Right(CGI.SCRIPT_NAME,3)) EQ "CFM") AND
(UCase(CGI.SCRIPT_NAME) DOES NOT CONTAIN "/TESTING/") AND
FindNoCase("restart=true",CGI.QUERY_STRING)>
<cfset OnApplicationStart()>
<cfset OnSessionStart()>
</cfif>
If I put the "restart=true" into the URL and load the page, the "rd" variable
gets initialized. It seems that OnSessionStart is not being executed when I
first access this site. Don't understand why it's not running.
Carl
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306076
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4