Bug Fix: Properly update the session secret