Hi everybody,
First sorry for my poor english (i'm french... nobody's perfect ;-)).
My problem is that an old application, running on CF5 without problem, doesn't
work on a new (OS Win 2003 sp2, IIS 6, CF8) machine. I precise that the cookies
are accepted on the client machine browser.
The problem is that session management seems not to work.
In the login folder
*******************************************************************************
Application.cfm
<CFAPPLICATION NAME="xxxxxxx" SESSIONMANAGEMENT="yes">
<CFSET Variables.DSN="yyyyyyyyy">
Index.cfm
a form with UserName and PW
ActionIndex.cfm
UserName and PW verification and if ok :
<CFLOCK TIMEOUT="10" TYPE="EXCLUSIVE" SCOPE="SESSION">
<CFSET Session.LoggedIn = "1">
and other session variables affectation...
</CFLOCK>
then
<cflocation url="/user foldername/file name.htm">
In user foldername
*******************************************************************************
Application.cfm
<cfapplication name="xxxxxxx" sessionmanagement="yes">
<CFSET Variables.DSN="yyyyyyyyy">
<CFLOCK TIMEOUT="10" TYPE="READONLY" SCOPE="SESSION">
<CFIF NOT IsDefined("session.LoggedIn")>
<SCRIPT LANGUAGE="JavaScript">
{window.close();}
</script>
<CF_LOCATION URL="/appfolder/Login/index.cfm">
</CFIF>
</CFLOCK>
file name.htm
A frameset with 3 cfm files using the session variables etc...
When i log with verified UserName and PW the second Application.cfm throw me
back to index.cfm as if session.LoggedIn where undefined.
If a delete the loggedIn verification the 3 cfm files in file_name.htm frameset
stop at the first reference of a session var used.
I saw in the CF8 documentation
Note:
If you set session variables on a CFML template that uses the cflocation tag,
ColdFusion might not set the variables. For more information, see TechNote
22712 at
http://kb2.adobe.com/cps/181/tn_18171.html
It was exactly what hapened to me. I tried every workarounds they suggest
without any success !! (javascript redirection, CF_Location, CFHeader, meta
refresh...)
I have an other application built in the same model that seems to work with
session variable without problem.
What can I do ?? stay in CF5 ?
Thanks in advance for any suggestion.
Best regards.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-server/message.cfm/messageid:6891
Subscription: http://www.houseoffusion.com/groups/cf-server/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-server/unsubscribe.cfm