-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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'); }
Metadata
Metadata
Assignees
Labels
No labels