0

I'm working on one web application, I dont have through idea about how to get users information like 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.

3
  • 1
    Do you mean without user's consent? Commented Jul 21, 2010 at 7:24
  • 4
    BTW, you've asked 8 questions in a month and you haven't accepted any answer so far... Commented Jul 21, 2010 at 7:25
  • 1
    yes, it's with users' consent. And thanks for your comment about "not accepted answers", i m here new..i diddnt knw the process, few mins i did that i.e. i hv accepted the answers for previous my posts....thanks again for this comment. Commented Jul 21, 2010 at 8:06

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.