Let's talk about PHP template caching and data security.

Source: Internet
Author: User
Tags php template
Let's talk about the PHP template cache and data security questions. if the PHP template cache page is stored on a machine, it is either to expose user data to the machine. if you use a VM, so can I directly read your cache page across sites to master your cached sensitive information ??? Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ??? What is the caching mechanism of most template engines ??? Welcome to talk about PHP template cache and data security.
For example, if the PHP template cache page is stored on a machine, it means that the user data is exposed to the machine. if the VM is used, so can I directly read your cache page across sites to master your cached sensitive information ???
Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ???
What is the caching mechanism of most template engines ???
Welcome to your speech !!
I just got in touch with the template engine. don't blame me for not saying anything!

------ Solution --------------------
Open_basedir-qualified Directory


But on a virtual machine, the data is exposed to the server manager.
------ Solution --------------------
Security is always relative
When you store data in a node on the internet in any form, your data is in an "insecure" state.
So there's no need to worry about it.

The template engine cache is used to accelerate the next access.
This is not directly related to security.
------ Solution --------------------
Since your website has sensitive data, you can set up servers and manage things for yourself. Otherwise, you will never be safe.
------ Solution --------------------
Is user data cached?
The final solution to this problem is not to cache user data.
------ Solution --------------------
Reference:
For example, if the PHP template cache page is stored on a machine, it means that the user data is exposed to the machine. if the VM is used, so can I directly read your cache page across sites to master your cached sensitive information ???
Or do I not know much about the template engine? is there any way to cache user data and it is not so easy to read ???
What is the caching mechanism of most template engines ???
Welcome to your speech !!
I just got started with the template engine and said no ......

Many interviews have asked you what the php Cache mechanism is and whether it has been used.

I don't think there is any data cache except page cache and template cache.

In fact, both of them have two sides. the specific needs depend on the demand and data volume.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.