简体   繁体   中英

Unwanted session files in my php session folder

I am accessing my website from Linux server. At the time of user login I create session.

But Even I didn't open site and locate in folder /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. I removed session_start call from cron files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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