简体   繁体   English

我的php会话文件夹中不需要的会话文件

[英]Unwanted session files in my php session folder

I am accessing my website from Linux server. 我正在从Linux服务器访问我的网站。 At the time of user login I create session. 在用户登录时,我创建会话。

But Even I didn't open site and locate in folder /var/lib/php/session 但是,即使我没有打开站点,也没有找到文件夹/ var / lib / php / session
there are contentiously some session file are getting created. 有争议的是正在创建一些会话文件。
I am unable to find from where these files are getting created. 我找不到从哪里创建这些文件的。

A session is always created. 会话总是被创建。 Your login just assigns the session with an user and the information that he/she/it is authenticated. 您的登录名仅分配与用户的会话以及他/她/它经过身份验证的信息。

Note: Also search engines and robots create sessions on your page. 注意:搜索引擎和漫游器还会在您的页面上创建会话。

每当您调用session_start()时,PHP都会创建会话

After to much research I found that session were getting created from cron files. 经过大量研究,我发现该会话是从cron文件创建的。 I removed session_start call from cron files. 我从cron文件中删除了session_start调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM