Skip to content

Flash messages #1

@jackttcoms

Description

@jackttcoms

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions