Skip to content
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

Add in-memory session store for drawbridge #18

Merged
merged 4 commits into from
Jan 15, 2015

Conversation

sritchie
Copy link
Contributor

@sritchie sritchie commented Jan 3, 2015

Fixes #15, and #11. This pull req adds an in-memory store wrapper with a different default key. The session that Drawbridge sets gets slurped up by the in-memory store, which sets a cookie. Any session middleware further up the chain won't see the non-serializable nREPL session values, and higher middleware such as Friend are free to set whatever keys they want in the standard, user-specified session.

@cemerick
Copy link
Collaborator

cemerick commented Jan 5, 2015

Looks good on a quick skim. I'd love to get a +1 from one other person before merging and releasing...?

@sritchie
Copy link
Contributor Author

sritchie commented Jan 5, 2015

@hiredman, @pate, any chance you guys could take a look?

@sritchie
Copy link
Contributor Author

Anyone!!?

@cemerick
Copy link
Collaborator

@sritchie I'll merge, then push a SNAPSHOT release. If you could then +1 using it, then I'll cut a proper release.

Maybe you'd like to pick up this project, too? I put it together largely as a proof of concept, but I don't actually have a use for it; if you do, better for you to maintain it than whatever it is I'm doing. ;-)

@cemerick cemerick merged commit d36d01d into nrepl:master Jan 15, 2015
@cemerick
Copy link
Collaborator

@sritchie This is now available in 0.1.0-SNAPSHOT. Let me know if it looks good on your end.

@sritchie
Copy link
Contributor Author

Okay, will try soon and get this in.

@sritchie sritchie deleted the feature/memory_session branch January 15, 2015 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drawbridge sessions can't be serialized
2 participants