agrafix / Spock

Another Haskell web framework for rapid development
https://www.spock.li
678 stars 56 forks source link

own implementation session storage #114

Closed ghost closed 7 years ago

ghost commented 7 years ago

Is there any way to be able to manage cookie that sending session manager? I created own session storage. But after login and redirecting to another page, session manager send anew created cookie that different with saving one it database?

agrafix commented 7 years ago

Can you provide some code?

ghost commented 7 years ago

https://gist.github.com/Sclaw/e05535dae41d389b3f3cb79a0edded73 It seems to me that my issue is similar to one with number #100 All works ok instead of cookie

agrafix commented 7 years ago

I think your ss_store is wrong, because it does not always store the session. You need to store all sessions that you recieve there, otherwise a new session is generated.

ghost commented 7 years ago

thanks a lot