Welcome Guest, Not a member yet? Register   Sign In
cookie problem (Solved)
#2

(This post was last modified: 03-06-2021, 12:58 PM by iRedds.)

PHP Code:
//use 
return redirect('/')->withCookies();
//or 
return redirect('/')->deleteCookie('auth'); 
delete_cookie() works with the Response instance.
redirect() works with the RedirectResponse instance. Although it extends the Response class, the instance is different.
Reply


Messages In This Thread
cookie problem (Solved) - by neoneeco - 03-06-2021, 08:16 AM
RE: cookie problem - by iRedds - 03-06-2021, 12:56 PM
RE: cookie problem - by neoneeco - 03-06-2021, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB