yep! Thanks a bunch.
Candace K. Cottrell, Web Developer
The Children's Medical Center
One Children's Plaza
Dayton, OH 45404
937-641-4293
http://www.childrensdayton.org
[EMAIL PROTECTED]
>>> [EMAIL PROTECTED] 12/3/2002 10:46:49 AM >>>
candace.
my religion on locks.
if you are reading a session variable....
<cflock scope="session" timeout="5" type="readOnly">
<cfset tony = #session.name#>
</cflock>
if you are writing to the value of a session variable.
<cflock scope="session" timeout="5" type="exclusive">
<cfset session.name = #query.name#>
</cflock>
exclusive when writing to one.
readonly when reading from one.
make sense?
.tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
-----Original Message-----
From: Candace Cottrell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 10:36 AM
To: CF-Talk
Subject: RE: Personaliztion with Coldfusion ?
Can you show me where I'd use the locks?
Candace K. Cottrell, Web Developer
The Children's Medical Center
One Children's Plaza
Dayton, OH 45404
937-641-4293
http://www.childrensdayton.org
[EMAIL PROTECTED]
>>> [EMAIL PROTECTED] 12/3/2002 10:25:15 AM >>>
The only 'correction' would be a reminder to use locks if you aren't
using MX - and I think the guy here is using 4.5.
=======================================================================
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: Candace Cottrell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 9:12 AM
> To: CF-Talk
> Subject: Re: Personaliztion with Coldfusion ?
>
>
> On your login page you'd set the session variable.
>
> If the login is successful.....
>
> <cfset session.views = "#queryName.Division#">
>
>
>
>
> Then you'd use the following on the page that displays the documents
>
> <CFQUERY name="docs" datasource="intranetv8">
> SELECT docid, doctitle, docsummary, docpath, docView_type
> FROM itdocs
> WHERE category2='#URL.category2#'
> AND
> views='#session.views#'
> OR
> views = 'all'
> </CFQUERY>
>
>
> Any of the "big dogs" please correct me if I'm wrong ;)
>
>
> Candace K. Cottrell, Web Developer
> The Children's Medical Center
> One Children's Plaza
> Dayton, OH 45404
> 937-641-4293
> http://www.childrensdayton.org
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm