fix(index.js): set maxAge in cookie session
refactor(index.js): rename _sessjson to _prevjson