The session expiration duration has to be set by using the global variable nuauth_session_duration
nuauth_session_duration