Home> PHP Framework> ThinkPHP> body text

How to open session in thinkphp6

藏色散人
Release: 2020-07-09 15:25:22
forward
5122 people have browsed it

The following tutorial column ofthinkphp frameworkwill introduce to you how to open a session in thinkphp6. I hope it will be helpful to friends in need!

How to open session in thinkphp6

Open the middleware.php file in the app directory and add in return:

\think\middleware\SessionInit::class
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!