Welcome Guest, Not a member yet? Register   Sign In
Cookie encryption
#1

I'm trying to mix the CI3 framework with a node.js server (socket.io) to make real-time chats rooms depending on CI's users groups.

I'm using the redis driver and i need to pass datas from the php server to the node server. 

As i'm using Redis for the session management, i suppose that i could just pass the session_id of the logged user to node (reading the cookie genberated by CI) , and from this id, retrieve redis session datas with node. ( basically i need to know the group of the logged user)


I dont understand how works the cookie encryption in CI. I just get an hash. I dont know how to decrypt it , and i dont know how CI can retrieve its own datas inside.
Reply


Messages In This Thread
Cookie encryption - by saturnales - 03-20-2016, 05:37 PM
RE: Cookie encryption - by Narf - 03-21-2016, 01:08 AM
RE: Cookie encryption - by saturnales - 03-21-2016, 09:22 AM
RE: Cookie encryption - by Narf - 03-21-2016, 11:11 AM
RE: Cookie encryption - by saturnales - 03-22-2016, 05:10 PM
RE: Cookie encryption - by Narf - 03-23-2016, 01:31 AM
RE: Cookie encryption - by arma7x - 03-22-2016, 08:16 PM
RE: Cookie encryption - by saturnales - 03-23-2016, 06:00 AM
RE: Cookie encryption - by saturnales - 03-23-2016, 06:17 AM
RE: Cookie encryption - by Narf - 03-23-2016, 07:40 AM
RE: Cookie encryption - by saturnales - 03-23-2016, 09:03 AM
RE: Cookie encryption - by saturnales - 03-26-2016, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB