kemal-session
kemal-session copied to clipboard
Simple session handler for Kemal
After reading over the code, I can't help thing kemal-session could be significantly simplified by just saving a single object. That is to say, removing all the strings, int32, int64,...
I noticed new 'empty' session objects get saved. As sessions are typically saved for an hour these can soon mount up, especially from clients which don't retain cookies (ie bots...
set the config.timeout = Time::Span.new(days: 0, hours: 0, minutes: 10, seconds: 0) then access your web server so the cookie file is created. Now wait one minute so the File.utime...
If I try to access cookies from the response before `env.session` is called, then my cookies are empty. ``` puts env.response.cookies.inspect # no cookies env.session puts env.response.cookies.inspect # lots of...