I know this is a stupid question, but I still want to be sure I'm doing this 
right. I have a 'Portal' which is tailored to individuals. I'm using 
session.userid to identify individual users so I can do lookups, etc. as 
specified in their various profiles.

I want the session variable to last around 4 hours... this I'm using:

<cfapplication name="vaughn_student_portal"     sessionmanagement="Yes"  
sessiontimeout=#CreateTimeSpan(0,4,0,0)#   
applicationtimeout=#CreateTimeSpan(0,4,0,0)#>

When the session.userid is set I'm wrapping it in CFLOCK (like below). Please 
confirm... I only need that lock to hold long enough to set the variable (in 
case multiple people are logging in at the same time) and DO NOT need it for 
the entire session. 

                  <cflock scope="session" type="exclusive" timeout="20">
                        <cfset session.userid="#getprofile.student_user_id#">
                </cflock>

Does this look correct?

Thanks,
Robert


Robert B. Harrison
Director of Interactive Services
Austin & Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be &.

Plug in to our blog: A&W Unplugged
http://www.austin-williams.com/unplugged

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346914
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to