yes it is very much ok...

On 5/10/07, Andrew Grosset <[EMAIL PROTECTED]> wrote:
>
> I have a cfc that is written to the application scope on server start. I
> need to check weather a user is logged in so is it ok to check for the
> session scope within this cfc?
>
> like this
>
> <cfif structKeyExists(session,"userID")>
> <cfset var userID = session.userID>
> </cfif>
>
> or should I handle this check within another cfc that is invoked directly
> (by form post) and then pass the result onto the cfc in the application
> scope?
>
> Andrew.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to