-
-
Save harikt/acd34c21a799255cef2d to your computer and use it in GitHub Desktop.
What requests do you see in the console when running the php -S
command? They should show up there.. otherwise, also open up the network tab in the debugger of your browser to see what requests are being done.
Keep in mind that all requests are routed to the file you point to as index (cookie1.php).
From the manual:
"If a PHP file is given on the command line when the web server is started it is treated as a "router" script. The script is run at the start of each HTTP request. If this script returns FALSE, then the requested resource is returned as-is. Otherwise the script's output is returned to the browser."
Favicon!
@m6w6 no favicon is here see the php script .
@ramondelafuente Yes the script was started with php -S
. Sorry for the delay guyes, I missed to see the comments. I am not sure why gist comments are not mailed by github.
Built in server cookie functionality
When the code was
cookie1.php
I was getting cookie values multiples of 2 on each request. 2, 4, 6 etc.So I made a check to see whether 2 request are going. But now it is again with the correct value. May be as https://twitter.com/f_u_e_n_t_e/status/466854136647270400 mentioned there may be some hidden request ?