actix / actix-redis

Redis actor and middleware for Actix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not recieving any cookie on client side

leoank opened this issue · comments

Hey, I am trying to use this crate to implement a cookie based auth system in my actix web server. However, using the example in the README, I am not recieving any cookie headers on the client side. Is it the intended behaviour or am i missing something?

For anyone who is facing the same issue, you have to use the HttpRequest.session().set() method in your route handler to generate cookie. You can also create a middleware which can do this for every request.