Session Management (Cont.) Function: PAM_EXTERN int pam_sm_close_session(pam_handle_t* pamh, int flags, int argc, const char** argv); Macro used: PAM_SM_SESSION The function instructs the module that the current session should be closed. The flags parameter may contain PAM_SILENT or 0. Valid return values: PAM_SUCCESS - the session was closed successfully. PAM_SESSION_ERR - an error occured.