I'm studying security on web applications.
For educational purposes, I logged into my facebook page and copied my active session cookie from document.cookie
, then opened another browser, logged on to the facebook homepage (unlogged) and declared document.cookie
= my cookie active session in another browser in string.
It did not work. So I downloaded an extension to Inject Cookie manually. I copied and put all cookies from my active session into the extension in the other browser and it also did not work.
My logic was simple: With a valid active session ID being declared in document.cookie
the server should take me to the user page when giving refresh.
My question is: at what point is my logic wrong and why?