Can anyone advice me on how I can discover the active cookie details for a user logged into a Drupal website?
1 Answer
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.
-
1The 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.– rfayCommented Jun 27, 2011 at 3:30