本文整理汇总了PHP中helpers\Session::destroy方法的典型用法代码示例。如果您正苦于以下问题:PHP Session::destroy方法的具体用法?PHP Session::destroy怎么用?PHP Session::destroy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类helpers\Session
的用法示例。
在下文中一共展示了Session::destroy方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: logout
/**
* Logs the user out
*
*/
public function logout()
{
Session::destroy();
/* Clear all sessions set for this project */
Url::redirect("http://something.sellerstam.mebokund.com/", true);
/* Goes back to the home page */
}
示例2: action_logout
public function action_logout()
{
if (!$this->userRequired()) {
return;
}
Session::destroy();
$this->redirect(FRONT_CONTROLLER . '/user/login');
}
示例3: loguit
public function loguit()
{
//Unset de sessions.
\Helpers\Session::destroy('username');
\Helpers\Session::destroy('id');
\Helpers\Session::destroy('rechten');
//Stuurt je door naar de homepagina.
\Helpers\Url::redirect('home');
}
示例4: logout
public function logout()
{
Session::destroy('loggedin');
Session::destroy('id');
Session::destroy('login');
setcookie("remember", "", time() - 10000, DIR);
Session::set('message', 'Vous avez bien été déconnecté');
Session::set('message_type', 'alert-success');
Url::redirect();
}
示例5: post
public function post($slug)
{
//Checkt of de aangemaakt url matched aan één van de url's in de database.
$check = $this->registreren->validateUser($slug);
if (count($check) == 1) {
//Als er een gebruiker gelinkt is word het account geactiveerd.
\Helpers\Session::destroy('checkmail');
$this->registreren->givePrivilage($check[0]->klant_id);
}
//Linkt je naar de succes pagina.
\Helpers\Url::redirect('activatie');
}
示例6: handleSearch
public function handleSearch($post)
{
if (isset($post['search_submit'])) {
$search = $this->runSearch($post['search_username']);
if (is_array($search)) {
Session::set('search_results', $search);
} else {
Session::destroy('search_results');
Session::set('search_message', $search);
if ($search == 0) {
Session::set('search_message', 'no results');
}
}
}
//return $data;
}
示例7: logout
public function logout()
{
Session::destroy();
Url::redirect('admin/login');
}
示例8: logout
public function logout()
{
Session::destroy();
Url::redirect();
}
示例9: logout
public function logout()
{
Session::destroy('user');
Session::destroy('user_id');
Url::redirect('account/login');
}
示例10: deconnexion
public function deconnexion()
{
Session::destroy('', false);
Url::redirect();
}
示例11: logout
/**
* Handle account logout, session destory
*/
public function logout()
{
\Helpers\Session::destroy();
\Helpers\Url::redirect('Home');
}
示例12: logout
public function logout()
{
Session::destroy();
setcookie('rememberme', false, time() - 3600 * 3650);
//'/', COOKIE_DOMAIN);
Url::previous();
}
示例13: logout
public function logout()
{
if (isset($_SESSION['rf_user']) && isset($_SESSION['rf_user_id'])) {
if (isset($_COOKIE['rf_user_cookie']) && isset($_COOKIE['rf_user_id_cookie'])) {
setcookie("rf_user_cookie", "", time() - 3600, "/", "", false, true);
setcookie("rf_user_id_cookie", "", time() - 3600, "/", "", false, true);
setcookie("rf_user_pass_cookie", "", time() - 3600, "/", "", false, true);
}
\Helpers\Session::destroy('user');
\Helpers\Session::destroy('user_id');
\Helpers\Url::redirect('');
} else {
\Helpers\Url::redirect('');
}
}
示例14:
'warningNumber': 40
};
// $('.textcounter').textareaCount(options);
var options2 = {
'maxCharacterSize': 160,
'originalStyle': 'originalTextareaInfo',
'warningStyle' : 'warningTextareaInfo',
'warningNumber': 40,
'displayFormat' : '#input/#max | #words words'
};
$('.textcounter').textareaCount(options2);
var options3 = {
'maxCharacterSize': 200,
'originalStyle': 'originalTextareaInfo',
'warningStyle' : 'warningTextareaInfo',
'warningNumber': 40,
'displayFormat' : '#left Characters Left / #max'
};
});
</script>
<?php
Assets::js(array(Url::templatePath() . 'js/custom.js'));
?>
</body>
</html>
<?php
Session::destroy('success');
Session::destroy('error');