Re: [Mojolicious] Using Mojolicious::Sessions for Non-Session Cookies

2019-02-06 Thread Viktor Nacht
Thank you, Stefan. That was really helpful and educational seeing the interplay between the module, helpers and hooks. I’m looking at it trying to wrap my head around an idea for a “Mojo::MagicCookie” that would allow you to deploy multiple session-like cookies without duplicating the all of

Re: [Mojolicious] Using Mojolicious::Sessions for Non-Session Cookies

2019-02-04 Thread Stefan Adams
Build a MyCookie module that works like Mojolicious::Sessions , and a helper "mycookie" that does what "session" does , but using MyCookie. Here's my

[Mojolicious] Using Mojolicious::Sessions for Non-Session Cookies

2019-02-01 Thread Viktor Nacht
I really love the "it just works" interface of Mojo's session cookie, and I was disappointed that I can't use that same kind of approach to other cookies. I wrote a helper to de/serialize my non-session cookies automatically, but that's still a step away from the amazing awesomeness of