pam_start() is being called in child process of parent deamon. I need to get the PAM environment (specially XDG_SESSION_ID ) after the successful session opened. So tried to get