You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i register, it logs me in automatically which i dont mind but on the Udemy course they show when you register it reidrects you to the login page which then shows the message so how do i change that and also regarding the logout function the message does not show even thought i have listed it etc so am i missing something?
Thanks
user/login <?php flash('loginout_message') ?>
logout controller public function logout() { unset($_SESSION['user_id']); unset($_SESSION['user_mail']); unset($_SESSION['user_name']); session_destroy(); flash('loginout_message', 'You have signed out successfully!'); redirect('users/login'); }
The text was updated successfully, but these errors were encountered:
How do the flash messages work?
When i register, it logs me in automatically which i dont mind but on the Udemy course they show when you register it reidrects you to the login page which then shows the message so how do i change that and also regarding the logout function the message does not show even thought i have listed it etc so am i missing something?
Thanks
user/login
<?php flash('loginout_message') ?>
logout controller
public function logout() { unset($_SESSION['user_id']); unset($_SESSION['user_mail']); unset($_SESSION['user_name']); session_destroy(); flash('loginout_message', 'You have signed out successfully!'); redirect('users/login'); }
The text was updated successfully, but these errors were encountered: