Add a function to set the session cookie timeout