merging
Persist session info in the database