本文整理匯總了PHP中Bootstrap::sessionStart方法的典型用法代碼示例。如果您正苦於以下問題:PHP Bootstrap::sessionStart方法的具體用法?PHP Bootstrap::sessionStart怎麽用?PHP Bootstrap::sessionStart使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Bootstrap
的用法示例。
在下文中一共展示了Bootstrap::sessionStart方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Class constructor
*
* There will be defined the callback urls for success or failure on login system
*
*/
public function __construct()
{
//SESSION ENABLED
Bootstrap::sessionStart();
$this->currency = "EUR";
$this->change_rate = 1;
/**
* @see OutsourceTo_AbstractProvider::$_outsource_login_url_ok
*/
$this->_outsource_login_url_ok = INIT::$HTTPHOST . INIT::$BASEURL . "index.php?action=OutsourceTo_TranslatedSuccess";
$this->_outsource_login_url_ko = INIT::$HTTPHOST . INIT::$BASEURL . "index.php?action=OutsourceTo_TranslatedError";
}
示例2: __construct
/**
* Class constructor
*
* There will be defined the callback urls for success or failure on login system,
* default localization values (currency and timezone)
* and default connection parameters for curls
*
* @see OutsourceTo_AbstractProvider::$_outsource_login_url_ok
* @see OutsourceTo_AbstractProvider::$_outsource_login_url_ko
*/
public function __construct()
{
Bootstrap::sessionStart();
$this->currency = "EUR";
$this->change_rate = 1;
$this->_outsource_login_url_ok = INIT::$HTTPHOST . INIT::$BASEURL . "index.php?action=OutsourceTo_TranslatedSuccess";
$this->_outsource_login_url_ko = INIT::$HTTPHOST . INIT::$BASEURL . "index.php?action=OutsourceTo_TranslatedError";
$this->_curlOptions = array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => 0, CURLOPT_USERAGENT => INIT::MATECAT_USER_AGENT . INIT::$BUILD_NUMBER, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2);
}
示例3: sessionStart
public function sessionStart()
{
Bootstrap::sessionStart();
}