I was testing a migration from CF8 to the Splendor Beta and I ran into a weird session issue. In my case, a session ID is inserted into a database table and there is a select that makes sure it is still the same a bit farther down. I was logging in and getting sent right back to the login screen. I found that the variable being inserted had some extra blank spaces and possibly a newline at the end. When outputting the variable, it looked exactly the same but the insert and select didn't match up. I ended up trimming the variable on the insert and select and that fixed the problem for me. It works fine in CF8 and CF9, I hadn't tried it in 10 yet, but the break is there in the new beta. I'm not sure what the problem is exactly, I just wanted to fix it so I could keep testing.
>Got a site currently running on CF8 that we're migrating to a completely >new server with a fresh CF10 install. There's an informal "members only" >section with user/pass login that we're having trouble with. No code >changes - no problems on the CF8 server. > >But, in various browsers, it seems the "logged-in" session var isn't >holding and the second you log in, it just kicks you back out. >CF8 version - all browsers stay logged in with no problems. >CF10 version - Chrome kicks you right back out. IE works great (??) > >So ... pretty simple stuff. If the username/pass matches: > ><cfif qVerify.RecordCount> > <!--- This user has logged in correctly, change the value of the >session.allowin value ---> > <cfset session.allowin = "True" /> > <cfset session.user_id = qVerify.uniqID /> ></cfif> > >... and there you go.. > >Application file settings: > ><cfapplication name="MyMemberSection" > clientmanagement="yes" > sessionmanagement="yes" > setclientcookies="yes" > setdomaincookies="yes" > sessiontimeout="#CreateTimeSpan(0,8,00,0)#" > applicationtimeout="#CreateTimeSpan(0,8,00,0)#" > clientstorage="cookie" > > > >So the question is - what's different between CF8 and CF10 that I need >to be looking for? I'm not even sure where to start looking at the >moment. Ideas? Tearing my hair out so far. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357728 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm