Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash messages #1

Open
jackttcoms opened this issue Apr 30, 2018 · 0 comments
Open

Flash messages #1

jackttcoms opened this issue Apr 30, 2018 · 0 comments

Comments

@jackttcoms
Copy link

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'); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant