code/libraries/joomlatools/library/user/session/abstract.php
public function fork($destroy = true, $lifetime = null)
    {
        if ($this->isActive())
        {
            if ($lifetime !== null) {
                ini_set('session.cookie_lifetime', $lifetime);
            }

            if (!session_regenerate_id($destroy)) {
                throw new RuntimeException('Session could not be forked');
            }
        }

        return $this;
    }
public function fork($destroy = true, $lifetime = null)
    {
        if ($this->isActive())
        {
            if ($lifetime !== null) {
                ini_set('session.cookie_lifetime', $lifetime);
            }

            if (!session_regenerate_id($destroy)) {
                throw new RuntimeException('Session could not be forked');
            }
        }

        return $this;
    }
public function fork ( $ destroy = true , $ lifetime = null ) { if ( $ this -> isActive ( ) ) { if ( $ lifetime !== null ) { ini_set ( 'session.cookie_lifetime' , $ lifetime ) ; } if ( ! session_regenerate_id ( $ destroy ) ) { throw new RuntimeException ( 'Session could not be forked' ) ; } } return $ this ; }
Migrates the current session to a new session id while maintaining all session data

Note : fork should not clear the session data in memory only delete the session data from persistent storage.

@param Boolean $destroy  If TRUE, destroy session when forking.
@param integer $lifetime Sets the cookie lifetime for the session cookie. A null value will leave the system
settings unchanged, 0 sets the cookie to expire with browser session. Time is in seconds,
and is not a Unix timestamp.
@see  session_regenerate_id()
@throws RuntimeException If an error occurs while forking this storage
@return $this
Migrates the current session to a new session id while maintaining all session data