question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a tool to decode session cookie

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
wgwzcommented, Dec 31, 2018

This will be my last comment in this thread. I’ve changed the name of the project to “flask-cookie-decode”.

  1. https://github.com/wgwz/flask-cookie-decode
  2. https://pypi.org/project/flask-cookie-decode/
  3. https://flask-cookie-decode.readthedocs.io/en/latest/index.html
1reaction
davidismcommented, Dec 31, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask Session Cookie Decoder - Kirsle.net
This is a simple Python script to decode Flask session cookies. Flask, by default, uses the URL-safe signed serializer "itsdangerous" to encode its...
Read more >
Decoding, Brute-Forcing and Crafting Flask Session Cookies
Video walkthrough for the "web-intro" challenge from the @DefCamp Capture The Flag (D-CTF) competition 2021/2022.
Read more >
flask-cookie-decode 0.3.2 - PyPI
Adds a cookie command to the built-in Flask CLI which will provide various tools for debugging the secure session cookie that Flask uses...
Read more >
Are there any tools to help decode cookies into login ... - Reddit
Are there any tools to help decode cookies into login information? Possible in the Kali suite, although doesn't have to be ...
Read more >
Flask Session Cookie Decoder/Encoder - GitHub
Use flask_session_cookie_manager3.py with Python 3 and flask_session_cookie_manager2.py with Python 2. usage: flask_session_cookie_manager{2,3}.py [-h] {encode, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found