It doesn't really matter, but I just... can't... let... it... slide.
No need for a single hash in this code.
<cfif isDefined("session.userid")>
<cfif session.userid>
<cfset validated_id = session.userid />
</cfif>
<cfelseif IsDefined("Cookie.StudentPortalUser")>
<cfset validated_id = Cookie.StudentPortalUser />
<cfset session.userid = Cookie.StudentPortalUser />
</cfif>
On Mon, Aug 22, 2011 at 2:16 PM, Robert Harrison <[email protected]
> wrote:
>
> > Your comment mentions cookie .. should it be ("cookie.userid")?
>
> That's further down :-)
>
> <cfif isDefined("session.userid")>
> <cfif session.userid gt 0>
> <cfset validated_id="#session.userid#">
> </cfif>
> <cfelseif IsDefined("Cookie.StudentPortalUser")>
> <cfset validated_id="#Cookie.StudentPortalUser#">
> <cfset session.userid="#Cookie.StudentPortalUser#">
> </cfif>
>
> 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:346942
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm