The following code works correctly if call directly, but if it is called 
remotely (XMLHTTP, Spry) the two values are passed ok but the session.variables 
are nowhere else to be seen after refreshing the page.

<cfsetting showdebugoutput=false>

<cfset application.blog = 
createObject("component","petitions.client.org.camden.blog.blog").init('default')>
<cfset q = 
application.blog.authenticate(left(trim(url.username),50),left(trim(url.password),50))>

<cfset session.userId = q.userId>
<cfset session.userRealName = q.name>

<cfoutput>#session.userId#</cfoutput>
<cfoutput>#session.userRealName#</cfoutput>

All session variables in other pages are set and retained as expected.

Just in case my <cfapplication is:

<cfapplication name="#prefix#_blog_#blogname#" 
clientManagement = "no" 
setClientCookies = "no" 
setDomainCookies = "no" 
loginStorage = "session" 
sessionManagement = "yes" 
sessionTimeout = #CreateTimeSpan(0,1,0,0)#
applicationTimeout = #CreateTimeSpan(1,0,0,0)#>

and there is nothing in Application.cfm that deletes these two specific session 
variables. 

Is it a special behaviour of XMLHTTP? or Spry?

Thanks for helping.
ContiW

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:257291
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