Welcome Guest, Not a member yet? Register   Sign In
Logout message using shield
#1

I've tried the following approaches in order to send a logout message to the login view while using CI4 Shield:
PHP Code:
auth()->logout();
session()->setFlashdata('message''This is a message!');
return 
redirect()->to('login'); 

Also:
PHP Code:
auth()->logout();
return 
redirect()->to('login')->with('message''This is a message'); 

But both didn't work. What is the standard procedure to do a logout while passing a logout message other than 'successLogout'?
Reply


Messages In This Thread
Logout message using shield - by bgeneto - 08-06-2024, 11:38 AM
RE: Logout message using shield - by kenjis - 08-06-2024, 06:19 PM
RE: Logout message using shield - by bgeneto - 08-07-2024, 06:54 AM
RE: Logout message using shield - by kcs - 08-07-2024, 10:37 AM
RE: Logout message using shield - by biker64 - 08-07-2024, 11:18 AM
RE: Logout message using shield - by kenjis - 08-07-2024, 04:02 PM
RE: Logout message using shield - by kenjis - 08-07-2024, 04:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB