Reputation: 1530
please help. We have a CFM system that works 100% for most of the users except a few (less than 10 out of 3000+ users). All users can login without a problem and session variables be set. The login page then send them to the dashboard. We then use the SessionID
, among other factors, to encrypt the URL string.
However for the 10- users, when they reach the dashboard, we get the error
Element SESSIONID is undefined in SESSION
The only resolution we have to far is for them to close the browser entirely then start from scratch. Everyone else is working fine.
Sure enough, the session struct dump has no SessionID
. I know that the sessionid
is basically AppName
+ CFID
+ CFToken
. How can I recreate the SessionID without sending them back to the login or losing the already set session variables?
Upvotes: 2
Views: 3087
Reputation: 79
SESSIONID includes "AppName + CFID + CFToken". So, whenever you want to perform logout functionality you need to clear CFID and CFToken both.If you put below codes under logout functionality. It will be fixed.
StructClear(session);enter code here
StructDelete(cookie, 'CFID');
StructDelete(cookie, 'CFToken');
Upvotes: 1