cvonkleist / encrypted_cookie

AES-128 encrypted session cookies for Rack (and Sinatra and other frameworks).
MIT License
53 stars 14 forks source link

TTL (time to live) for cookie #7

Closed mkristian closed 10 years ago

mkristian commented 10 years ago

a few days back there was a big news in renowned german IT forum that rails session cookies can be stolen. in principal that is right since the server has no way to terminate a cookie or session associated to a cookie.

coming from java there server side session have idle session timeout (default 30min) and as a developer I do not need to do anything to enforce this !!! it would be great if these encrypted cookies would have build in TTL with that stealing of cookies has less impact and overall the application itself gets a nice extra security - per default.