PHP Files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

PHP Files

I know how PHP files work, but are they erased after the user session, or do they continue to exist?

22nd Mar 2018, 8:01 PM
Norberttony
Norberttony - avatar
2 Answers
+ 8
php files are stored in server side and will stay there unless a function in php file erases it. Only information stored using session functions will be deleted after it ends.
22nd Mar 2018, 9:14 PM
Farshad
Farshad - avatar
+ 2
PHP files are stored on a server. The HTML, JS, CSS, images ect..., output from these files will be stored in the browsers cache until such a time that the user clears the cached data. The PHP file it’s self will not be downloaded to the user unless you have configuration issues on the server. The user session will clear its self when either the user logs out and you destroy the session or the session expires which is when the server will remove the session file from the /temp folder on the server.
22nd Mar 2018, 10:12 PM
C0D4
C0D4 - avatar