I am trying to convert my asp pages to php. I am having a problem with sessions in php.
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
What would I need to change in my php.ini file:
session.save_path
/Windows/Temp
session.name
PHPSESSID
session.save_handler
files
session.auto_start
session.gc_probability
1
session.gc_maxlifetime
1440
session.serialize_handler
php
session.cookie_lifetime
session.cookie_path
/
session.cookie_domain
no value
session.use_cookies
1
session.referer_check
no value
session.entropy_file
no value
session.entropy_length
session.cache_limiter
nocache
session.cache_expire
Thanks for your help.