Skip to main content
Inspiring
March 24, 2008
Question

IsUserLoggedIn returns "NO" after cfloginuser

  • March 24, 2008
  • 2 replies
  • 352 views
I'm using the IsUserLoggedIn() function for some basic logic like this

<cfif isUserLoggedIn() >
<!--- display the logout link --->
</cfif>

But it does not seem to return yes even after successfully logging in a user with the cflogin tag. I know this works
but i don't understand what i'm doing wrong. Anybody have any idea how I can troubleshoot this?
    This topic has been closed for replies.

    2 replies

    Inspiring
    March 25, 2008
    Yes I am using the <cfloginuser> tag to log in users. I meant <cfloginuser> instead of <cflogin> in my original post.

    It originally worked (isUserLoggedIn()) but when i came in to work yesterday
    it started returning no when a user logs in...which boggles me. To the best of my knowledge I did not change anything between it returning yes one day and no the next.
    I searched the forums for "isuserloggedin" but didn't find anybody else with any problems. So it seems to suggest I'm misunderstanding something. Any ideas?
    Inspiring
    March 26, 2008
    Anybody? Any idea how to troubleshoot this?
    Inspiring
    March 25, 2008
    are you using <cfloginuser> tag to log in your users? isuserloggedin()
    requires the use of <cfloginuser> tag.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/