Skip to main content
October 11, 2011
Question

cflogout Problem

  • October 11, 2011
  • 1 reply
  • 3619 views

Hi,

    I have a web application which use cflogin and cflogout as the authentication. Since we have some special accounts that can be used by different people, we allow multiple login to the system.

    However, we encounter a problem. When there are two or more people login the same account, they can input data and do the query in their computer. But, when one of them logouts the account, all others will also be logout and their inputted data (still have not updated to server) are lost.

    Is there any methods to solve it? Can cflogout only logout one session? not kill all sessions (login with the same account)?

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    October 11, 2011

    That indeed seems strange. I expect cflogout not to log out or kill sessions. Not even the session of the current user. It should simply delete the currently logged in username, password and roles from memory.

    What is the value of loginStorage in the Application file? Have you perhaps mistakenly added code in the cflogout page which globally affects sessions?

    October 11, 2011

    I'm sorry. I am a beginner of ColdFusion and users report this problem in our existing system. May I know where is the loginStorage in application.cfm? I will check it tomorrow when I'm in office.

    BKBK
    Community Expert
    Community Expert
    October 11, 2011

    LoginStrorage is an attribute of the cfapplication tag. It can take values "cookie"(the default) or "session", and tells ColdFusion where to store the login information. Could show us any of your login/logout code that involves variables in the application and session scopes?