PHP & Sessions: Is there any way to disable PHP session locking?

后端 未结 7 1455
感动是毒
感动是毒 2020-11-30 07:44

Is there any way to disable the session locking in PHP while using the default session handler?

[EDIT:] Or is there at least a way to restart a session after callin

7条回答
  •  执笔经年
    2020-11-30 08:23

    This is a rather old question which I came across while researching session handlers, however the answer is yes it is possible - but not using the default handler (without deep hacking into the filesystem to disable locking).

    I have come across the same issue. The important thing to note is that you really must know exactly the consequences of disabling locking!

    My solution is part of a larger extension to the session handling mechanism - the Stackable Session Handler which includes storage compatible with the default handler and (optionally) non-blocking session reads and writes.

提交回复
热议问题