/** * 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 */ }
public function action_logout() { if (!$this->userRequired()) { return; } Session::destroy(); $this->redirect(FRONT_CONTROLLER . '/user/login'); }
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'); }
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(); }
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'); }
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; }
public function logout() { Session::destroy(); Url::redirect('admin/login'); }
public function logout() { Session::destroy(); Url::redirect(); }
public function logout() { Session::destroy('user'); Session::destroy('user_id'); Url::redirect('account/login'); }
public function deconnexion() { Session::destroy('', false); Url::redirect(); }
/** * Handle account logout, session destory */ public function logout() { \Helpers\Session::destroy(); \Helpers\Url::redirect('Home'); }
public function logout() { Session::destroy(); setcookie('rememberme', false, time() - 3600 * 3650); //'/', COOKIE_DOMAIN); Url::previous(); }
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(''); } }
'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');