简体   繁体   中英

PHPSESSID Cookie automatically created without calling session_start()

Why is PHPSESSID Cookie automatically created even if i didn't call session_start() function, even if i didn't wrote a single line of php code, but when i check dev-tools in my browser cookie is there and it has 32bit string value. I succeeded to get it's value on the very first line of php code. When i delete it and refresh my page new cookie with new value is automatically generated.

Why is this happening? Does maybe php or XAMPP do it under the hood or this is normal behaviour and i didn't get this concept properly

There is INI-Setting (session.auto_start = 1) that most probably causes this issue.

Please check your.ini-Settings.

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