Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Do values passed into a PHP script using the POST or GET method automatically leave a record on the server?

I have my users pass values to PHP using POST or GET methods, but I don’t record these values using methods like SESSION or database. Will PHP automatically leave a record of these values on the server?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

PHP itself will not log or store those values automatically, no.

However, the data will have passed through your webserver software in order to reach PHP, and your webserver may log some or all of this data.

What precisely is logged depends on which webserver you use and how the logging feature is configured, but in most setups by default you’re likely to find that the request body (where POST variables are transmitted) is not logged, but that the URL, including the querystring (where GET variables are transmitted) usually is logged.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading