Last active
February 12, 2021 10:27
-
-
Save sjb9774/f6b7b17c35e55aa93d8abfd5e4591c61 to your computer and use it in GitHub Desktop.
retrieving gzipped redis data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> mr dev:console | |
$state = $di->get(\Magento\Framework\App\State::class); | |
$state->setAreaCode('frontend'); | |
$redis = $di->get(\Magento\Framework\Session\SaveHandler\Redis::class); | |
$sessionData = $redis->read("<session id without 'sess_' prefix"); | |
# fully decode like PHP | |
session_start(); | |
session_decode($sessionData); | |
var_dump($_SESSION); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment