Home >PHP Framework >ThinkPHP >How to open session in thinkphp6
The following tutorial column of thinkphp framework will introduce to you how to open a session in thinkphp6. I hope it will be helpful to friends in need!
Open the middleware.php file in the app directory and add in return:
\think\middleware\SessionInit::class
The above is the detailed content of How to open session in thinkphp6. For more information, please follow other related articles on the PHP Chinese website!