I am trying to work on something where whenever a user is logged in my site, it shows a logout image link for them in the header top area section. Whenever they are not logged in, the image of login comes in with a link instead. Any help would be appreciated.
I assume you track you user login status by setting a session variable. So all you have to do is check to see if the session variable exist and that it is defined. You use a cfif statment and a cfelse statment <cfif IsDefined(session.login) and session.login eq "true"> <!---html code with the link and image---> <a href="logout.cfm"><img src="your logout image"><a/> <cfelse> <a href="login.cfm"><img src="your login image"><a/> </cfif> Code (markup): you can also put a form in the cfelse statment.
Sorry, you said that you use cookies. if that is the case the you just need to change "session" to "client" Ofcource thats is you store the cookies on the clients machine.