Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible to manipulate an existing session from an external source? #115

Open
emily-ng opened this issue Nov 17, 2020 · 1 comment

Comments

@emily-ng
Copy link

emily-ng commented Nov 17, 2020

Hi, I'm using a function from an external library that opens and and starts a lua resty session and then returns it. However I'd like to add some custom data to that session and save it. Is that possible? I'm fairly new to lua-resty-session so I might be missing something. Thanks in advance.

@bungle
Copy link
Owner

bungle commented Nov 18, 2020

You should be able to open the session again, but you need to use similar configuration (as the library). You can always setup another session too (change the name to not conflict with other library) and store your additional data there. You may be able to modify the library too to be able to pass your additional data there, or perhaps the whole session instance.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants