Where is session_name stored in database?
For Drupal 7, I need to know where the session name is stored. I.E. the value returned by session_name(), as opposed to the session ID which is returned by $_COOKIE[session_name()] and stored in sessions.sid :) At least I *assume* that the cookie name is stored in the database, but can't find where. thanks -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com
Hi tom I think sesssion_name stored in "sessions" table corresponding to session_id.please see On 11 Feb 2014 07:24, "Tim Johnson" <tim@akwebsoft.com> wrote:
For Drupal 7, I need to know where the session name is stored.
I.E. the value returned by session_name(), as opposed to the session ID which is returned by $_COOKIE[session_name()] and stored in sessions.sid
:) At least I *assume* that the cookie name is stored in the database, but can't find where.
thanks -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com -- [ Drupal support list | http://lists.drupal.org/ ]
* Naveen valecha <valecha29@gmail.com> [140210 17:09]:
Hi tom I think sesssion_name stored in "sessions" table corresponding to session_id.please see Hi, Thanks for the quick reply. The sessions table has a 'sid' column, which on my system stores the session ID, (not the session name). As I understand it, the value returned by the session_name() function is the name of the cookie that has been set. The contents of the cookie is the same as the session ID. Example, on my machine, using localhost, The session_name() function returns SESS8f93ae84e0d076318a028995c285dfea I find a cookie named SESS8f93ae84e0d076318a028995c285dfea and it's contents are 5GwoK_4A8Kiw8gmEnVo0lyCcq5H4-jz1X5T0ODMz76A
In the sessions table, I find the sid value equal to 5GwoK_4A8Kiw8gmEnVo0lyCcq5H4-jz1X5T0ODMz76A And that is the same value returned from $_COOKIE[session_name()]; So the sid value in the database is the session ID, *not* the *session name* I'm try to find out where the *session name* is stored. It must be in the database somewhere to maintain presistance. cheers -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com
What, if any, difference is there between these two link formats?They both appear to produce the same content; Is there any reason to use one over another? I remember early on, I read that I should have Clean URL's turned on, but don't remember any significant reason. Someone here asked, and I didn't really have an answer. http://nhdc-web-dev/jury-verdicts-13 http://nhdc-web-dev/?q=jury-verdicts-13 Thanks, Phil
First one is the clean URL, which search engines love. They both translate to the same thing in Drupal. Jamie Holly http://hollyit.net On 3/5/2014 10:26 AM, Philip_Wetzel@nhd.uscourts.gov wrote:
What, if any, difference is there between these two link formats?They both appear to produce the same content; Is there any reason to use one over another? I remember early on, I read that I should have Clean URL's turned on, but don't remember any significant reason. Someone here asked, and I didn't really have an answer.
http://nhdc-web-dev/jury-verdicts-13 http://nhdc-web-dev/?q=jury-verdicts-13
Thanks, Phil
It's not in the database. It's hashed based upon cookie domain and/or host. Here's where it's set: https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_set... Jamie Holly http://hollyit.net On 2/10/2014 8:54 PM, Tim Johnson wrote:
For Drupal 7, I need to know where the session name is stored.
I.E. the value returned by session_name(), as opposed to the session ID which is returned by $_COOKIE[session_name()] and stored in sessions.sid
:) At least I *assume* that the cookie name is stored in the database, but can't find where.
thanks
* Jamie Holly <hovercrafter@earthlink.net> [140210 17:09]:
It's not in the database. It's hashed based upon cookie domain and/or host. Here's where it's set:
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal_set... Thank you Jamie. I will attempt to grok that. That's all I need right now. Cheers -- Tim tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com
participants (4)
-
Jamie Holly -
Naveen valecha -
Philip_Wetzel@nhd.uscourts.gov -
Tim Johnson