lingolatz 2 Posted April 12, 2012 Report Share Posted April 12, 2012 I am having trouble understanding how one would go about solving this problem: Define the login credentials — the cookie name and value — as constants in a configuration file. Then include that configuration file on every page and use those constants for creating, deleting, and confirming the value of the cookie. Does 'configuration file' translate to 'text file', that acts as a sort of configuration file? I do not see what the purpose of this problem is. Why does one want the login credentials defined, a configuration file to hold the credentials, and then the file included in various pages? Quote Link to post Share on other sites
Larry 433 Posted April 13, 2012 Report Share Posted April 13, 2012 A configuration file would just be a PHP script without any HTML or anything that's included by all the other files. By using a configuration file, you can provide the same information to every script but changes only require editing the one file. It's a very common approach. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.