int posix_getsid ( int $pid )
Return the session id of the process pid. The session id of a process is the process group id of the session leader.
Returns the identifier, as an integer.