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.

Rate this knowledge base item


  • 1
    Poor

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
    Great
 
blog comments powered by Disqus

Topics

About

Amit Arora is web developer with expertise in developing eCommerce enabled websites for the businesses.

Contact | Resume

Subscribe to newsletter




Get Firefox

Monitored by Site24x7
Uptime