colinmollenhour / Cm_RedisSession

Redis-based session handler for Magento with optimistic locking
208 stars 121 forks source link

Question about encryption ? #116

Closed waghanza closed 7 years ago

waghanza commented 7 years ago

Hi,

I try to take a lookup about session data store in redis.

I'm on a Magento 1.9 with Cm_RedisSession enabled.

On a local redis my session's data are store in plain text. However on a remote redis data seems to be binaries.

How can I decode those data ?

Regards,

waghanza commented 7 years ago

I finally use _decodeData in Cm_RedisSession_Model_Session to decode those data

LukeHandle commented 7 years ago

Hey. Is the data prefixed with "gz:"? It's likely GZip'ed compresses data?

waghanza commented 7 years ago

@LukeHandle effectively. I have some time gz as a prefix. I have use the _decodeData (https://github.com/colinmollenhour/Cm_RedisSession/blob/1.15/code/Model/Session.php#L599) since it check for compression type, e.g :