english/libraries/joomla/session/session.php
/**
	 * Set additional session options
	 *
	 * @param   array  $options  List of parameter
	 *
	 * @return  boolean  True on success
	 *
	 * @since   11.1
	 */
Set additional session options
@param   array  $options  List of parameter

@return  boolean  True on success


Set additional session options @param array $options List of parameter @return boolean True on success
protected function _setOptions(&$options)
	{
		if (isset($options['name'])) {
			session_name(md5($options['name']));
		}
		if (isset($options['id'])) {
			session_id($options['id']);
		}
		if (isset($options['expire'])) {
			$this->_expire	=	$options['expire'];
		}
		if (isset($options['security'])) {
			$this->_security	=	explode(',', $options['security']);
		}
		if (isset($options['force_ssl'])) {
			$this->_force_ssl = (bool) $options['force_ssl'];
		}
		ini_set('session.gc_maxlifetime', $this->_expire);
		return true;
	}
protected function _setOptions ( & $ options ) { if ( isset ( $ options [ 'name' ] ) ) { session_name ( md5 ( $ options [ 'name' ] ) ) ; } if ( isset ( $ options [ 'id' ] ) ) { session_id ( $ options [ 'id' ] ) ; } if ( isset ( $ options [ 'expire' ] ) ) { $ this -> _expire = $ options [ 'expire' ] ; } if ( isset ( $ options [ 'security' ] ) ) { $ this -> _security = explode ( ',' , $ options [ 'security' ] ) ; } if ( isset ( $ options [ 'force_ssl' ] ) ) { $ this -> _force_ssl = ( bool ) $ options [ 'force_ssl' ] ; } ini_set ( 'session.gc_maxlifetime' , $ this -> _expire ) ; return true ; }
Set additional session options
 @param   array  $options  List of parameter
Set additional session options @param array $options List of parameter
// Set name // Set id // Set expire time // Get security options // Sync the session maxlifetime