-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ranging over session key/value pairs #34
Comments
A look at the clear function gives light on this!
|
my session does not have .Session()? I assume that is what you meant by "s" ? Maybe?
... session is an interface Lines 24 to 47 in 19716a2
|
@TJM I'm not sure that was 2 years ago, context could have been better on my behalf. Reevaluating this, if you cast it to the actual implementation of the Session interface then there is an object in there. For example the cookie implementation is: |
Sorry, I realized I had responded to a zombie issue after I already hit submit :) Thanks, I will try that "cast" idea. Displaying all keys in the session is really sortof a debugging operation anyhow, but I can see how it might be useful enough to add a Also, the "example" code for session/cookie does not encrypt the cookies, so I was able to just use "Inspect" -> application -> cookie... and base64 decode (it was two different layers), and see what I was trying to see at the client level. I was going to try to just "output" (c.JSON) everything in the session, but then I realized it was a waste of time/effort as that would not be something anyone would likely want to do. Thanks, |
Is it possible to range over the key/value pairs in session so I can log them?
The text was updated successfully, but these errors were encountered: