Cookies vs session id parameter in the url
Started on the old forum in January 2018 · view the original in the archive · old links redirect here
Having it in the url is a bad idea as they are passed to other sites via referrer when a user clicks an external link on your site. (Unless they have an outgoing page with no session on it). They can be easily stolen and also can be easily socially engineered .
However if you are swapping from url sessions to $_SESSION or $_COOKIE then you need to make sure you secure your script, as you can cause even worse security problems than you had originally had.
Yeah it helps. Make sure you are also protected from CSRF attacks when using cookies.