Copy link to clipboard
Copied
I'm still some what a beginner with CF so take it easy on me. I currently have a web site that uses MyBB as a forum. My homepage/portal is programmed in coldfusion. Currerntly it is gathering post information so it shows latest posts and comments. I want users to be able to login here as well and then it redirect back to the homepage/portal. The login script works flawlessly, however, once someone logs in I want to be able to retrieve the cookies from myBB and then output the current user's username, userid, email, ect.
How would I retrieve the cookies information and then output the information with coldfusion?
Thanks!
Copy link to clipboard
Copied
You can display any cookie in ColdFusion like this:
<cfoutput>
#cookie.cookiename#
</cfoutput>
If you want to see all the cookie names you can do this:
<cfdump var="#cookie#">
Hope that helps.
--
Pete Freitag
Copy link to clipboard
Copied
I also agreed with Peter Freitag. For outputing the cookie's information in cf code, use <cfoutput> tag. The syntax is
<cfoutput>#cookiesname#</cfoutput>.
For see the cookie name for the revision <cfdump> tag is used in the code.Syntax is
<cfdump var="#cookiename#">
Thanks
Bipin