Skip to content

Instantly share code, notes, and snippets.

@StoneLabs
Created May 7, 2020 13:47
Show Gist options
  • Save StoneLabs/fe04a8437a952c57ae539b29f91bb8ac to your computer and use it in GitHub Desktop.
Save StoneLabs/fe04a8437a952c57ae539b29f91bb8ac to your computer and use it in GitHub Desktop.
PHP Session ID from JS
var sId = /SESS\w*ID=([^;]+)/i.test(document.cookie) ? RegExp.$1 : false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment