1

Can anyone advice me on how I can discover the active cookie details for a user logged into a Drupal website?

1 Answer 1

1

All cookie data is in the PHP superglobal $_COOKIE. However a typical Drupal site only stores the a random session identifier in the cookie, so it may not be what you're looking for. If $_COOKIE doesn't answer your question please post more details about what you're trying to accomplish.

1
  • 1
    The session ID in the active cookie is a key to many things which you may think of as part of the cookie, even though they're stored on the server. You may want to look at $_SESSION as well.
    – rfay
    Commented Jun 27, 2011 at 3:30

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.