How I can remove PHPSESSID in Symfony2

后端 未结 1 1050
傲寒
傲寒 2021-01-16 20:36

I deployed my website on line and all works fine,but I have in the end of link of pages something like that :

../..?PHPSESSID=....

So my qu

1条回答
  •  一向
    一向 (楼主)
    2021-01-16 21:00

    PHPSESSID is not added by Symfony, PHP is configured to append the PHPSESSID variable to the URL to allow PHP to track the session. You can disable this behavior by using

    ini_set('session.use_trans_sid',false);
    

    Please see My web host is adding ?PHPSESSID=fgh2h45... to the end of the URL for more details

    0 讨论(0)
提交回复
热议问题