Add a tool to decode session cookie
See original GitHub issueHi, all. I have a feature request that I’ve been thinking about for a while. Some times I want to look at what is in the session cookie. Obviously one way to do that is by logging the cookie at various points in your server-side code. But some times I want to inspect the cookie outside of the application, directly from the browser. There are various ways of doing this (1, 2, 3). But it requires defining a snippet of code each time you want to do it.
That said this feature request is to add in a utility, perhaps a CLI tool that decode a session cookie, e.g.:
$ flask decode <cookie-from-browser>
This would prevent users from needing to define this snippet each time, and provide an easy to use interface. I’m curious to hear what others think and if this is indeed a feature that the community thinks will be useful.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
This will be my last comment in this thread. I’ve changed the name of the project to “flask-cookie-decode”.
To me, both the package and command names don’t say what they’re decoding, and there are lots of things that could be decoded.