Barry Frost

This is Barry Frost’s personal website.

Tagged #sessions

Roll your own SQL session store

A more efficient Rails session storage than ActiveRecordStore - avoids overhead of

has_many :through: Don't make a new one on my account

“Using the :new_session => false option tells Rails not to create a new session if there isn’t one already” - useful for where you may want to have logged in site owners but not create sessions for guests (eg blog)