Merge pull request #185 from raydf/master

Use http-only cookie for session
This commit is contained in:
Serdar Dogruyol 2016-08-07 14:25:47 +03:00 committed by GitHub
commit 98199f96f8

View file

@ -73,7 +73,7 @@ module Kemal
id = SecureRandom.hex id = SecureRandom.hex
end end
ctx.response.cookies[NAME] = id ctx.response.cookies << HTTP::Cookie.new(name: NAME, value: id, http_only: true)
@id = id @id = id
end end