Below is code that I've written to try to determine if a cold fusion
session variable exists. I've read that you can access session
variables via web services. But whenever I call the CFC below via web
service it returns 0 regardless of whether or not the session variable
does exist. Can I use the method below to determine (remotely from
another server) if a session exists in my current browser window? Am I
totally off-base here?
<cfcomponent>
<cffunction name="myFunction" access="remote" returntype="numeric"
output="false">
<!------> <cfif isdefined("session.peopleID")>
<cfset peopleID="#session.peopleID#">
<cfelse>
<cfset peopleID = 0>
</cfif>
<cfreturn peopleID>
</cffunction>
</cfcomponent>
Thanks for any help.
Daron Smith
PSEA IT
"PSEA E-mail Firewall" annotation on Wed Aug 09 2006 12:21:40
---------------------------------------------------------------------
NOTICE: Only the individual sender is responsible for the content of the
message, and the message does not necessarily reflect the position or policy of
the Pennsylvania State Education Association.
---------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249324
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4