Get information about user from cookie
is it possible to get information about user (name, id etc) from vanila cookie ? I want connect vannila with my system and I want to use login on vanila. And if user is loged and have some role, he can get to another part of websites.
And I need to decrypt cookie somehow.
I found this https://gist.github.com/700805/a98274daaf338df1fbd76a28a733d8698d7311b5 and I supose it is what I need. But it is not working :-(
thank you for replies.