I'm using sessions with a PdoSessionHandler. Is there a way to deserialize and instantiate each row of the sess_data into a Session object that I can inspect?
Something like session_deocode() in plain php?
Thanks to @drumann! I figured out trimming the prefix "_sf2_attributes|" from sess_data, got me the deserialize version of the Symfony 4 session ie
unserialize(trim($sess_data,"_sf2_attributes|"))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.