in PHP by (13.6k points) edited by
0 like 0 dislike

How I can to disable PHP session cookie?

php session disable

1 Answer

0 like 0 dislike
by (13.6k points) edited by

There have several ways do it.

Use ini_set():

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

Or in php.ini file:

session.use_cookies = 0

Or in .htaccess:

php_value session.use_cookies 0


SetEnv session.use_cookies='0';

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.