PHP.nl

posix_getsid

posix_getsid

Get the current sid of the process

 **posix_getsid** int $process_id

Return the session id of the process . The session id of a process is the process group id of the session leader. process_id

process_id The process identifier. If set to 0, the current process is assumed. If an invalid is specified, then false is returned and an error is set which can be checked with . process_id``posix_get_last_error

Returns the identifier, as an , return.falseforfailure. int

**Voorbeeld: Example use of **

<?php
$pid = posix_getpid();
echo posix_getsid($pid); //8805
?>

posix_getpgid``posix_setsid