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 all cookies are accepted by the browser (IE6 but the same on FF3.6).
The problem is that session management seems not to work.
In the login folder
********************************************************
Application.cfm
Index.cfm
a form with UserName and PW
ActionIndex.cfm
UserName and PW verification and if ok
In user foldername
********************************************************
Application.cfm
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 [URL unfurl="true"]http://kb2.adobe.com/cps/181/tn_18171.html[/url]
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.
First sorry for my poor english (i'm french... nobody's perfect
![[wink] [wink] [wink]](/data/assets/smilies/wink.gif)
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 all cookies are accepted by the browser (IE6 but the same on FF3.6).
The problem is that session management seems not to work.
In the login folder
********************************************************
Application.cfm
Code:
<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
Code:
<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
Code:
<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 [URL unfurl="true"]http://kb2.adobe.com/cps/181/tn_18171.html[/url]
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.