ire4ever1190 / mike

The new and improved mikero web framework
35 stars 1 forks source link

Regarding data accessibility #31

Closed AritraBanik08 closed 8 months ago

AritraBanik08 commented 8 months ago

I have another question here I have used redis to send data from one link to another. Is there a better way to do this in mike? If yes, can you show it to me.

ire4ever1190 commented 8 months ago

I see you removed in the redis in #c7419625, the new cookie solution looks pretty good.

Another way of doing it is that when a user creates a reservation it gets saved to the database and they get returned a reservation ID. Then later they can make a request to /reservations/:id and the server just looks up check-in/check-out times from the DB

AritraBanik08 commented 8 months ago

Can you tell me why the session cookie is not working on the line 240 and 241 here. It's working sometimes and not working other times now the session cookies are working only on chrome and not in firefox and safari.