Flex and application.cfm files in conflict
I need to use my application.cfm file to set some security variables. It seems
like it conflicts w/ my Flex 2 application.
If the session times out, then none of my Flex calls work. I have to refresh
the page in order for the application to work again. A CFLOCATION tag did
nothing either (I thought if it timed out I could just refresh the page).
<CFAPPLICATION NAME="myApp" SESSIONMANAGEMENT="yes" SETCLIENTCOOKIES="no"
SESSIONTIMEOUT="#createTimeSpan(0,0,30,0)#">
<CFIF NOT IsDefined("Session.valid")>
<CFQUERY NAME="getRole" ....>
The query to define who can see the application
</CFQUERY>
<CFIF getRole.recordCount EQ 0>
<P>This URL is restricted.</P>
<CFABORT>
<CFELSE>
<CFSET session.valid="1">
</CFIF>
</CFIF>
|