Hey folks,
I have a quick question (hopefully). Something weird is going on, and I
canât place it, and Iâm feeling like I'm having a brain freezeâ¦. This
shouldnât be an issue.
I have a simple application in MX 7. Application.cfm has the following:
<cfapplication name="zarts_tag5" sessionmanagement="true"
sessiontimeout="#createTimeSpan(7,0,0,0)#"
applicationtimeout="#createTimeSpan(30,0,0,0)#" setclientcookies="true">
I have an index.cfm with a simple login form (username and password).
That form posts to a file called âlogin_exec.cfmâ. This file then
authenticates the user and after authentication is successful, I have:
<cfset session.isAuthorized = true>
If I put a dump of the session scope right after this, I can see that the
variable IS getting set to true.
So, after this, I had a <CFLOCATION> to my statistics.cfm page. But on the
statistics.cfm page, a dump revealed that session.isAuthorized was now false.
Now, I seemed to remember a bug in MX (or 5.0, canât remember which) that you
couldnât do a <cflocation> after a set of cookies or session variables on a
page or you would lose the variables. So, thinking this was my problem, I
changed the cflocation to the following:
<script>
window.location = âstatistics.cfmâ;
</script>
However, that didnât help the problem. The changes to the session scope that
are made in login_exec.cfm are NOT persisting through to the next page, even
with a client side re-direct.
I have 10+ years experience in CF and the fact that I havenât figured this
out yet is driving me nuts. Iâm sure itâs something simple that Iâm just
not seeing. I guess hitting 40 will do that to you. :/
Anyone got any ideas where my culprit is?
Thanks!
Dave
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315326
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4