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


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
    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
    Jun 27 '11 at 3:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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