Jump to content

Getting Separate Elements Of Cookie


shobhitjain
 Share

Recommended Posts

session_id%2SSSd2AAAAAd3dBSAAASSds%3dAd32ewv%we%%3A%22fweqcwweefa3ab6f383qwc63d6c9e0qwc5306da4c6f9%22%3Bs%3A10%3A%22Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+5.1%3B+en-US%3B+rv%22%3B%3A13%3A%22last_activity%22257770773%22%3Bs%3A4%3A%22g_id%22%6682935337255211285%22%3Bs%3A5%3A%22g_key%22wqc%wqewq3Bs%wqe3Awqe32%3wqeA%22qwe4e4wqed6c332b6fe62a63afe56171fd3725%22%3Bs%3A6%3A%22g_name%ASD2wqAS e2%ASDASewqASD3BASDews%e3eAe8e%e3Aqw%q2%%sdfaw%eweBqwwseqw%3A5wqcw%3A%22123232.jpg%22%3B%7D65d599e8sddssdffffs0This is the cookie ,from which i need to retrieve elements on base of g_key,session_id or anythingPlease suggest

Link to comment
Share on other sites

Well, you need a function to urldecode it, then you can use JSON.parse() to convert it back into an object.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...