Finally fixing Persistent sessions