passing session id via url

前端 未结 5 1353
逝去的感伤
逝去的感伤 2020-12-03 23:26

I\'m trying to get my script to use url session id instead of cookies. The following page is not picking up the variable in the url as the session id. I must be missing some

5条回答
  •  北海茫月
    2020-12-04 00:16

    Instead of hardcoding 'PHPSESSID', use this:

    session_id($_GET[session_name()]);
    

提交回复
热议问题