How to disable PHP session cookie?

后端 未结 6 2156
醉梦人生
醉梦人生 2020-12-11 03:30

I am writing PHP code where I want to pass the session id myself using POST. I don\'t want a cookie to store the session, as it should get lost when the user gets out of the

6条回答
  •  伪装坚强ぢ
    2020-12-11 03:48

    err its possible to override the default settings of your host by creating your own .htaccess file and here's a great tutorial if you havent touched that yet http://www.askapache.com/htaccess/apache-htaccess.html

    or if you're too lazy to learn just create a ".htaccess" file (yes that's the filename) on your sites directory and place the following code

    SetEnv session.use_cookies='0';
    

提交回复
热议问题