开发者

How do I get users information using javascript/jquery - session/cookies/etc

I'm working on one web application, I dont have through idea about how to get users information li开发者_Go百科ke Session's data, cookies , and others..

I want to know :

  • Is there any way ? and how ? to get above information and client side information using javascript/jquery.
  • What are others client side data can i access using javascript/jquery.

Your suggestion(s) are welcome!!!

Thanks in advance.


Reading cookies from javascript is slightly trickier then it should be as it involves slicing up the long cookie string. It's still fairly trivial but I'd recommend you use an existing library to abstract these details away.

http://plugins.jquery.com/project/cookie if you're using jQuery or http://www.quirksmode.org/js/cookies.html#script for vanilla

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜