I am new to php. I am trying to convert my asp pages to php. I am trying to set these on a PAGE by PAGE basis (not for my whole web site).
I am trying find the equivalent PHP code for the following ASP code:
//Every user's session information will remain in memory on the web server until 120 minutes after the user's last request or if the user refreshes a page.
Session.Timeout = 120
//Specifies a date and time on which the content of the current page will cease being cached on the client machine.
Response.expiresAbsolute = Now() - 10
//This prevents the client's browser from caching the page
Response.expires = 0
//Allows you to add your own HTTP response header with a corresponding value.
Response.addHeader "pragma", "no - cache"
Response.addHeader "cache-control", "private"
//Sets the amount of time before the script times out to 200 seconds.If the script takes more than 200 seconds, the script will time out and a time out error will be sent to the client.
Server.ScriptTimeout = 200
Should I be using the header function to set these on a PAGE BY PAGE basis? I saw the example in the PHP manual , but I am looking for a better explanation of the header(). Thanks.