php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #77709 allow passing a timeout value to session_start
Submitted: 2019-03-07 16:52 UTC Modified: -
From: torgato at posteo dot de Assigned:
Status: Open Package: Session related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: torgato at posteo dot de
New email:
PHP Version: OS:

 

 [2019-03-07 16:52 UTC] torgato at posteo dot de
Description:
------------
Currently session_start blocks until all previous session_start's are closed and there is no "at least not known to me" way to limit this blocking as even max_execution_time is not counted during this time.

So I would like to see session_start to accept a timout value like 

session_start(5) 

that returns, in this case, after 5 seconds and gives the programmer the chance to react to the fact that there is one/multiple long running session using the same session ID already.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC