dflame

Member
Nov 28, 2002
12
0
151
We are trying to turn session cookies off for one domain and are not having a lot of luck with a .htaccess file.

Can any one supply the full correct argument for this in a .htaccess file ?

cPanel.net Support Ticket Number:
 

www-lab

Well-Known Member
Feb 1, 2003
62
0
156
php_value session.use_cookies "0"

cPanel.net Support Ticket Number:
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
So, If I use this "php_value session.use_cookies "0"" in the .htaccess file, my php system will not write a cookie to visitors PC ?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
So, If I use this "php_value session.use_cookies "0"" in the .htaccess file, my php system will not write a cookie to visitors PC ?
Not for PHP sessions, see the related documentation at: http://us.php.net/session

Instead, PHP sessions will be recorded server-side. However, The PHP Group recommends using cookies rather than storing sessions on the server, as a security measure against social engineering.