src/session.php
public static function keep($type=null) {
	$type = self::check_type($type);
	
	if (self::cookie_exists($type)) {
		self::start($type);
	}
}
public static function keep($type=null) {
	$type = self::check_type($type);
	
	if (self::cookie_exists($type)) {
		self::start($type);
	}
}
public static function keep ( $ type = null ) { $ type = self :: check_type ( $ type ) ; if ( self :: cookie_exists ( $ type ) ) { self :: start ( $ type ) ; } }
keep a current session active
use this when you want to start using a session in the current request

@note this does *not* create a new session if one doesn't already exist
@see  ::start() if you always want to create a new one anyway

@param  string $type one of the ::TYPE_* consts
optional, defaults to ::TYPE_CONTINUOUS
@return void
keep a current session active use this when you want to start using a session in the current request