本文整理汇总了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();
}