Welcome Guest, Not a member yet? Register   Sign In
Reading encrypted CI cookies outside of CI?
#1

[eluser]little brittle[/eluser]
I have 2 subdomains on my site that I want to share a cookie:

content.mysite.com (running CodeIgniter)
blog.mysite.com (running Wordpress)

Users can register on the main site, and I set an encrypted cookie with CI. I want to read the CI cookie to retrieve the user's username and email address on the Wordpress blog. The problem is, I need to figure out how to decrypt them in plain PHP. Is this possible?
#2

[eluser]TheFuzzy0ne[/eluser]
So long as you're other Web site is aware of the site key, I don't think that would be a problem. From what I can see, (although I might be wrong), the Encrypt library should work outside of CodeIgniter, so just take a copy of that file, and use the decode() method to decode the string with your site key.




Theme © iAndrew 2016 - Forum software by © MyBB