Home
» Knowledge base » I want to use my own cookie name in session ?
How do I change the PHPSESSID name to better suit my site ?
I want to use my own cookie name in session ?
How do I change the PHPSESSID name to better suit my site ?
7 June 2004, 10:35 am IST
User Rating: 8.5 (20 votes)
You can use the session_name() function to change the setting of your session name:
session_name('AMAZON');
But make sure that use this function before using the session_start() function.
Topics
- Apache (2)
- Javascript (1)
- PHP (5)
- Windows (3)
About
Amit Arora is web developer with expertise in developing eCommerce enabled websites for the businesses.
Monitored by Site24x7
Uptime