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

non-local session support #58

Closed
pmuellr opened this issue Feb 26, 2014 · 3 comments
Closed

non-local session support #58

pmuellr opened this issue Feb 26, 2014 · 3 comments
Milestone

Comments

@pmuellr
Copy link

pmuellr commented Feb 26, 2014

to run on a "cloud" the session support should store sessions in some remote db, that each instance of the wiki can access. I don't see any code to do that today.

As an example, I might want to use something like this to store my session in mongo, prolly same db as my pages, different collection.

Thoughts?

@pmuellr
Copy link
Author

pmuellr commented Feb 26, 2014

Found a reference to "cookie sessions", where the session data is stored in the cookie, as opposed to some store. Downside is that you can't store that much data in there - doesn't seem to be a problem with wiki. Upside is you don't need a store - the cookie IS the store.

This seems like potentially useful node package to handle these:

@nrn
Copy link
Member

nrn commented Feb 27, 2014

So far we've only had many wikis running on one server, not one wiki running on many servers, so we haven't really felt the pressure to figure out a good solution. The db was a non starter, with the overhead it adds to setup. I agree that now that we have support for pages in dbs that it would work to have a session store in the same db, but we are not well setup to do that.

The mozilla cookie session store looks to be quite slick, and should be a drop in replacement. I can't see any disadvantages for our limited usecase, unless anyone else can I'd love to see a pull request for it.

@paul90 paul90 added this to the 0.3.x milestone Oct 6, 2014
@paul90
Copy link
Member

paul90 commented Oct 6, 2014

Switching to using client-sessions as part of the Express 4 migration. Currently in the paul90/0.3.x branch as 3662745

@paul90 paul90 closed this as completed Jul 11, 2016
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

No branches or pull requests

3 participants