Why would you want to do that? Is it because you are executing an application in php and its not working. Sometimes you need to refresh the page twice to get it work, or maybe its only working once and then it would work only after executing the cookie cleaner?

Solution : Add the following to your .htaccess file:

SetEnv session.use_cookies='0';

Of, before you call session_start(), add the following to your php files:

ini_set('session.use_cookies', '0');

To permanently disable cookies for session on the server ( not recommended !), add the following to your php.ini file :

session.use_cookies = 0

Comments welcome.

Regards

Leave a Reply

Your email address will not be published. Required fields are marked *