-
-
Save masihyeganeh/9551308 to your computer and use it in GitHub Desktop.
Weird PHP session lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| set_time_limit(0); | |
| session_start(); | |
| print $_SESSION['something']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| set_time_limit(0); | |
| session_start(); | |
| $_SESSION['something'] = 0; | |
| for ($i=0; $i < 1000; $i++) { | |
| $_SESSION['something']++; | |
| sleep(10); | |
| } |