I'm storing stuff in a session that is sometimes handled by drupal. The session id is passed forward to another service, which checks back to the original server to get the session data.
When the session id is generated by drupal, i want to recognize it so i can include the drupal bootstrap instead of creating a normal php session. What would be a proper way to recognize drupal session ids ?
Is there a way to make it more specific, like change the sessionid myself ?
-
is not an invalid character for a stringdrupal_random_key()
, indrupal_session_initialize()
and other functions. Drupal does no special processing of the session ID, and definitely nothing to do with manipulating underscores in the string. As @Letharion said you can see all of that in includes/session.inc. The file's only a few hundred lines long, very easy to understand