asked in PHP by (6.6k points)
0 like 0 dislike
9 views
How to disable PHP session cookie, sid URL parameter?

php session id disable

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.

1 Answer

0 like 0 dislike
answered by (6.6k points)

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

Or:

SetEnv session.use_cookies='0';

Related questions

0 like 0 dislike
1 answer 28 views
0 like 0 dislike
1 answer 42 views
0 like 0 dislike
1 answer 33 views
0 like 0 dislike
1 answer 15 views
0 like 0 dislike
1 answer 55 views
0 like 0 dislike
1 answer 46 views
0 like 0 dislike
1 answer 5 views
...