Yeah, My bet is it's the way you log users out. Instead of all that
junk, try this:

http://www.cflib.org/udf.cfm/SessionClear

Remove the cfapplication tag, assuming it's in your application
already, and the structclear, and just call this sessionClear
function.

Another thing you can do is grab the CFID and CFTOKEN from the cookie
scope (I assume it's probably there), and piece together your
session.sessionID from those, as it appears to just be a combination
of the two.

-nathan strutz
http://www.dopefly.com/


On 1/31/06, Steve Logan <[EMAIL PROTECTED]> wrote:
> I was (maybe incorrectly) under the impression that if session management is 
> enabled in cfapplication, then session.sessionid should be available for all 
> users?
>
> What's happen is that it's being set inconsistently - sometimes it gets set, 
> sometimes not - and I can't seem to figured out why.
>
> My application tag is:
>
> <cfapplication name="testMFY"
> clientmanagement="Yes"
> clientstorage="ClientStore"
> sessionmanagement="Yes"
> setclientcookies="Yes"
> sessiontimeout="#CreateTimeSpan(0,0,30,0)#"
> applicationtimeout="#CreateTimeSpan(0,1,0,0)#"
> >
>
> I've currently got a Firefox browser open, and an IE open - after a fresh 
> restart, and I'm dumping the session scope and IE shows the session.sessionID 
> and firefox doesn't:
>
> IE:
> SESSIONID TESTMFY_27_75871719
> URLTOKEN CFID=27&CFTOKEN=75871719
>
> Firefox doesn't show that either of those session vars exist.
>
> It seems to maybe be related to my 'logout page' which clears the session 
> stucture and then redirects users back to the home page:
>
> <CFAPPLICATION NAME="testMFY"
> SESSIONMANAGEMENT="YES"
> SESSIONTIMEOUT="#CreateTimeSpan(0,0,0,0)#">
>
> <CFLOCK TIMEOUT=10 scope="session">
>   <CFSET structClear(session)>
> </CFLOCK>
> <CFLOCATION URL="../index.cfm">
>
> Why is it not getting reset when they go back to index.cfm and thus hit the 
> main application.cfm page?
>
> This is CF5 on W2K.
>
> Thanks.
> Steve
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230888
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to