Hiya,
When trying to move my set up of Sava from a dev machine to a server I have
encountered a really really annoying problem, that I need some help with
resolving. For some reason it seems that cflogin doesn't work on the server
- the login information is not kept over the request.
Both machines are running 32-bit Windows and Tomcat. I have tested behind
apache and directly on tomcat. They are running the same version of OpenBD,
a nightly of the other day. It doesn't seem to matter if j2ee sessions are
enabled or not.
Does anyone know how to further troubleshoot this?
Here is a test case that I prepared. To test it - put it in a template and
call it twice in the same browser (refresh) in the same session.
-------------------------------
<cfapplication name="testApp" sessionmanagement="yes" />
<h1>Before cflogin</h1>
<h2>SESSION</h2>
<cfdump var="#SESSION#" />
<h2>getAuthUser() (if this shows "thisName" after the template has been
called twice in the same session, this shows that the authentication
information is retained)</h2>
<cfdump var="#getAuthUser()#" />
<h2>COOKIE</h2>
<cfdump var="#COOKIE#" />
<cflogin>
<cfloginuser
name="thisName"
password="thisPass"
roles="roleA,roleB"
/>
</cflogin>
<hr/>
<h2>After cflogin</h2>
<cfset SESSION.testVar = "here we are trying to set a session variable, to
see if it keeps with the next request" />
<h2>SESSION</h2>
<cfdump var="#SESSION#" />
<h2>getAuthUser()</h2>
<cfdump var="#getAuthUser()#" />
<h2>COOKIE</h2>
<cfdump var="#COOKIE#" />
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official blog @ http://blog.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---