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

Include this in kemal-session itself? #1

Open
Thyra opened this issue Nov 30, 2016 · 3 comments
Open

Include this in kemal-session itself? #1

Thyra opened this issue Nov 30, 2016 · 3 comments

Comments

@Thyra
Copy link

Thyra commented Nov 30, 2016

Is there any advantage to having this Handler as a separate shard and not including it in kemal-session itself? I can't imagine anyone who would say, "Well, actually, I would rather like to have sessions that are not CSRF-safe because I like to live dangerously" ;-).
This way with the separate shard it's just some extra complication for people who are new to Kemal.

@sdogruyol
Copy link
Member

I think this is a good idea 👍

@sdogruyol sdogruyol mentioned this issue Mar 23, 2017
@henrikac
Copy link
Contributor

henrikac commented Oct 4, 2021

@Thyra @sdogruyol I have tried to fix this issue a couple of time but I always run into the issue that Kemal::Session contains constants that are being set twice when I require "kemal-csrf in kemal-session because kemal-csrf requires kemal-session.

Is there a way to make sure that a constant only gets set once? Or would a better solution be to just move the CSRF class into kemal-session?

@sdogruyol
Copy link
Member

Yeah, moving CSRF into Kemal session would be feasible

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