english/libraries/joomla/session/session.php
/**
	 * Create a new session and copy variables from the old one
	 *
	 * @return  boolean $result true on success
	 *
	 * @since   11.1
	 */
Create a new session and copy variables from the old one
@return  boolean $result true on success


Create a new session and copy variables from the old one @return boolean $result true on success
public function fork()
	{
		if ($this->_state !== 'active') {
			return false;
		}
		$values	= $_SESSION;
		$trans	=	ini_get('session.use_trans_sid');
		if ($trans) {
			ini_set('session.use_trans_sid', 0);
		}
		$cookie	=	session_get_cookie_params();
		$id	=	$this->_createId(strlen($this->getId()));
		session_destroy();
		$this->_store->register();
		ini_set('session.use_trans_sid', $trans);
		session_set_cookie_params($cookie['lifetime'], $cookie['path'], $cookie['domain'], $cookie['secure']);
		session_id($id);
		session_start();
		return true;
	}
public function fork ( ) { if ( $ this -> _state !== 'active' ) { return false ; } $ values = $ _SESSION ; $ trans = ini_get ( 'session.use_trans_sid' ) ; if ( $ trans ) { ini_set ( 'session.use_trans_sid' , 0 ) ; } $ cookie = session_get_cookie_params ( ) ; $ id = $ this -> _createId ( strlen ( $ this -> getId ( ) ) ) ; session_destroy ( ) ; $ this -> _store -> register ( ) ; ini_set ( 'session.use_trans_sid' , $ trans ) ; session_set_cookie_params ( $ cookie [ 'lifetime' ] , $ cookie [ 'path' ] , $ cookie [ 'domain' ] , $ cookie [ 'secure' ] ) ; session_id ( $ id ) ; session_start ( ) ; return true ; }
Create a new session and copy variables from the old one
 @return  boolean $result true on success
Create a new session and copy variables from the old one @return boolean $result true on success
// @TODO :: generated error here // Save values // Keep session config // Create new session id // Kill session // Re-register the session store after a session has been destroyed, to avoid PHP bug // restore config // restart session with new id