Gyrus, I couldn't reproduce this. I used a simpler test:

<cfif not isDefined("session.verity")>
        setting session.verity<br>
        <cfset session.verity = 1>
</cfif>

<cfindex action="update"
collection="6A89AE47-4D03-11D3-944600104BF23043_BODY"
key="#ExpandPath('tags')#" type="PATH"
urlpath="http://localhost/downloads/"; extensions=".cfm" recurse="No">

On first run, I see the "setting..." message, but I do not see it again.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
WWW      : www.camdenfamily.com/morpheus
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Gyrus [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 08, 2002 9:35 PM
> To: CF-Talk
> Subject: CFMX wipes session vars after Verity update?
> 
> 
> Just had a curious glitch in an app (running CFMX with 
> updater on my local
> WinXP Pro desktop):
> 
> Using the developer tools interface I've built into my app, I went and
> created the Verity collection for indexing a directory of 
> files. Fine. Then
> I selected the option to update (i.e. index) the collection. 
> There was the
> usual pause while it indexed, then I was promptly thrown back 
> to my login
> form. Apparently, my session vars no longer existed.
> 
> The code I running was a plain CFINDEX:
> 
>   <!--- Get paths to directory and file types --->
>   <cflock scope="APPLICATION" type="READONLY" timeout="10">
>    <cfset wwwroot = application.vars.front_wwwroot>
>    <cfset allowedFileTypes = 
> Duplicate(application.vars.allowedFileTypes)>
>   </cflock>
>   <cfset allowedFileTypes = Replace(allowedFileTypes, ",", 
> ",.", "ALL")>
>   <cfset allowedFileTypes = ".#allowedFileTypes#">
>   <!--- Do indexing --->
>   <cflock timeout="30" name="INDEXLOCK_downloads" type="EXCLUSIVE">
>    <cfindex action="#attributes.action#" collection="downloads"
> key="#ExpandPath('..\downloads\')#" type="PATH"
> urlpath="#wwwroot#downloads/" extensions="#allowedFileTypes#" 
> recurse="No">
>   </cflock>
> 
> I don't know *for sure* that the session variables had gone - 
> I've logged
> back in now and the indexing worked OK. But, to my eyes, it 
> seemed that my
> session had just been wiped.
> 
> Anyone come across anything like this before?
> 
> - Gyrus
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to