CST463 M4 Ktunotes.in
CST463 M4 Ktunotes.in
CST463 M4 Ktunotes.in
• The path and domain fields work together: The path is a directory found
on the domain, below which the cookie should be sent back to the server.
If the path is “/”, which is common, that means the cookie can be read by
any files below the document root. If the path is “/products/”, the cookie
can be read only by files within the /products directory of the website
• In lines 8–10, the text that makes up the SQL statement is assigned to the variable $sql. This is
arbitrary, and you do not even need to place the content of your SQL query in a separate variable