Welcome Guest, Not a member yet? Register   Sign In
What is the best place to store app variables?
#5

(10-14-2022, 12:47 AM)jetspeed Wrote:
(10-08-2022, 02:49 AM)kenjis Wrote: You should set the secret keys in Environment Variables.

If you set in app/Config/Constants.php or Controllers, all the people who can access the source code
can get the secret keys.

But won't the same hacker have access to the .env file?

If CI has been installed the correct way a .env file is just as save, the main difference is if the .env is publicly available it's readable PHP cannot be read by default (still possible with wrong configuration on server) it's processed.
Reply


Messages In This Thread
RE: What is the best place to store app variables? - by superior - 10-17-2022, 01:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB