How to cancel the cookie? of laravel_session returned by default in laravel framework

as the title
frame version is 5.6

Jun.12,2021

this is a cookie, specific code injected by default in the framework. In the buildSession () method of / vendor/laravel/framework/src/Illuminate/Session/SessionManager.php , you can change the name of the cookie, but you cannot delete it, because the framework will inject the cookie at the beginning of each time.


just disable session in the middleware, but why remove it? Are you sure you know what you're doing?


I guess you want to change this name. There are configuration items in config/session.php . You can also use the environment variable SESSION_COOKIE to set

.
Menu