kemalcr / kemal-session

Simple session handler for Kemal
MIT License
53 stars 30 forks source link

Empty Sessions #52

Open crisward opened 7 years ago

crisward commented 7 years ago

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 / webcrawlers etc).

I think it'd be a good idea if the various engines or the core library could prevent the saving of empty sessions, thoughts?

sdogruyol commented 7 years ago

This is a good improvement for sure

crisward commented 7 years ago

I'll try an make some time to look at this and do pull requests on the various engines, or whatever is needed in core.

rdp commented 4 years ago

Just came here to request the same thing. Another future, unrelated possibility: don't serialize it and save it if it hasn't changed...? :)

henrikac commented 3 years ago

@crisward @sdogruyol is this still an issue?