PHP $_SESSION Implementation

后端 未结 6 821
情话喂你
情话喂你 2021-01-23 07:25

Does anyone know how PHP maps session IDs to $_SESSION arrays? In other words, given session ID x, where does PHP pull the values from to populate the $_SESSION array?

6条回答
  •  北海茫月
    2021-01-23 08:00

    Session info is stored on server filesystem. There's configuration parameter session.save_path in php.ini. Some info about sessions security is given here: http://www.php.net/manual/en/session.security.php

提交回复
热议问题