I am sure you cannot call a web service on Server B (remote) to determine if
you have a session on your Server A (local).
 





"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Smith, Daron [PA]
To: CF-Talk
Sent: Wed Aug 09 17:20:14 2006
Subject: Sessions and web services

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:249327
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