首先去环境的phpstudy中 的php.ini去看session.auto_start = 0 改成session.auto_start = 1
然后去配合文件写上sessin配置
然后 可以生成或销毁