Skip to main content
January 24, 2007
Question

<cflogout>

  • January 24, 2007
  • 4 replies
  • 543 views
Hi
I have use <cflogin> to login proc. now I want to logout and login as another user but I dont know how to logout in <cflogout> porc.
    This topic has been closed for replies.

    4 replies

    BKBK
    Community Expert
    Community Expert
    January 24, 2007
    It opens directed page but, infact it stays logged in.

    What does this say when you put it in the redirected page:

    <cfoutput>#getAuthUser()#</cfoutput>

    Inspiring
    January 24, 2007
    Here is mine:

    <cflock timeout="10" scope="application" type="exclusive">
    <cfset StructClear(session)>
    </cflock>
    <cflogout>
    <cflocation url="somewhere">

    Maybe clearing the session is the step you are missing.
    January 24, 2007
    I did,
    It opens directed page but, infact it stays logged in. after logged out and tring to relog with another member it doesn't allow it stats logged in with previoue user.
    Inspiring
    January 24, 2007
    Set up a link to a logout page. On that page, have a cflogout tag and a redirect of some sort.