Answers.Body: <p><em>More debug titbits.</em></p>
  
  <p>Your question sounds like you're looking for the submitted/missing value name in the codebase - this form field name is probably not mentioned in the codebase if it's a value configured in the DB, as the form will then be generated.</p>
  
  <p>Also, this name (say "volunteer_reason") may have been "munged" to a degree thanks to HTML_QuickForm's naming form inputs (you might see "contact_1_volunteer-reason_1" or whatever).</p>
  
  <p>The most frequent cause of these not being populated as expected is when there is a mismatch between the originating and resulting request URLs. For those purposes, <a href="http://www.example.org" rel="nofollow noreferrer">http://www.example.org</a> and <a href="https://www.example.org" rel="nofollow noreferrer">https://www.example.org</a> are not the same thing; neither are <a href="http://example.org" rel="nofollow noreferrer">http://example.org</a> and <a href="http://www.example.org" rel="nofollow noreferrer">http://www.example.org</a></p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save#comment2314_2616">This comment</a> almost makes it sound like you're hitting session initialization issues - and that including the iframe prevents this. Weird.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T23:27:33.620Z
Answers.LastActivityDate: 2015-06-15T23:27:33.620Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Chris Burgess
Answers.Body: <p><em>I suspect this answer isn't what you need, but it might help your understanding.</em></p>
  
  <p>PHP has superglobals <code>$_SESSION</code> and <code>$_REQUEST</code> which CiviCRM is probably using to access that data.</p>
  
  <ul>
  <li><a href="http://php.net/manual/en/reserved.variables.request.php" rel="nofollow">$_REQUEST</a> contains data from <a href="http://php.net/manual/en/reserved.variables.cookie.php" rel="nofollow">$_COOKIE</a>, but <em>generally</em> CiviCRM doesn't refer directly to cookies; it tends to use $_SESSION for that, and $_REQUEST for submitted form variables.</li>
  <li><a href="http://php.net/manual/en/reserved.variables.session.php" rel="nofollow">$_SESSION</a> is stored server-side, and</li>
  <li>PHP handles the mapping internally to identify the right local session from supplied cookies (or other methods, in a pinch).</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T23:24:22.003Z
Answers.LastActivityDate: 2015-06-15T23:24:22.003Z
Answers.UserDisplayName: Chris Burgess
Answers.Body: <p>To view the cookie / session information on profile submission:</p>
  
  <ul>
  <li>Read <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers" rel="nofollow">Debugging for developers</a> and become familiar with how to view values when CiviCRM is processing the form submission.</li>
  <li>Go back through your posted backtrace and find where the value that fails validation is first validated. (Looks like <code>CRM_Core_DAO::composeQuery()</code> from the backtrace posted in other question.)</li>
  <li>Inspect the submitted / missing value before it's validated.</li>
  <li>Debug from there.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T23:31:59.390Z
Answers.LastActivityDate: 2015-06-15T23:31:59.390Z
Answers.UserDisplayName: Chris Burgess
Body: <p>This question is because of troubleshooting I've been doing on <a href="https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save">Why won&#39;t data entered into CiviCRM profile html snippet save?</a>  Loading a Profile makes otherwise malfunctioning embedded forms work, and I suspect something is happening on the server side to allow access/give permission to something.</p>
  
  <p>So: how do I view what's happening with cookie data in CiviCRM on the server side?  I've tried rgrep to search all files in the web directory for the cookie name, and have dumped the CiviCRM database and the Joomla database and searched for the cookie name.  I can't think of anywhere else to look.  Thanks for any pointers!</p>
  
Tags: <profile>
Title: How do I view cookie or session information on the server?
ThreadText: # How do I view cookie or session information on the server?
  
  (Asked by: username_0 on 2015-06-15)
  
  This question is because of troubleshooting I've been doing on [Why won't data entered into CiviCRM profile html snippet save?](https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save) Loading a Profile makes otherwise malfunctioning embedded forms work, and I suspect something is happening on the server side to allow access/give permission to something.
  
  So: how do I view what's happening with cookie data in CiviCRM on the server side? I've tried rgrep to search all files in the web directory for the cookie name, and have dumped the CiviCRM database and the Joomla database and searched for the cookie name. I can't think of anywhere else to look. Thanks for any pointers!
  
  **Tags:** profile
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-06-15. Score: 1
  
  *More debug titbits.*
  
  Your question sounds like you're looking for the submitted/missing value name in the codebase - this form field name is probably not mentioned in the codebase if it's a value configured in the DB, as the form will then be generated.
  
  Also, this name (say "volunteer\_reason") may have been "munged" to a degree thanks to HTML\_QuickForm's naming form inputs (you might see "contact\_1\_volunteer-reason\_1" or whatever).
  
  The most frequent cause of these not being populated as expected is when there is a mismatch between the originating and resulting request URLs. For those purposes, <http://www.example.org> and <https://www.example.org> are not the same thing; neither are <http://example.org> and <http://www.example.org>
  
  [This comment](https://civicrm.stackexchange.com/questions/2616/why-wont-data-entered-into-civicrm-profile-html-snippet-save#comment2314_2616) almost makes it sound like you're hitting session initialization issues - and that including the iframe prevents this. Weird.
  
  
  ---
  
  ### Answer by username_1 on 2015-06-15. Score: 0
  
  *I suspect this answer isn't what you need, but it might help your understanding.*
  
  PHP has superglobals `$_SESSION` and `$_REQUEST` which CiviCRM is probably using to access that data.
  
  * [$\_REQUEST](http://php.net/manual/en/reserved.variables.request.php) contains data from [$\_COOKIE](http://php.net/manual/en/reserved.variables.cookie.php), but *generally* CiviCRM doesn't refer directly to cookies; it tends to use $\_SESSION for that, and $\_REQUEST for submitted form variables.
  * [$\_SESSION](http://php.net/manual/en/reserved.variables.session.php) is stored server-side, and
  * PHP handles the mapping internally to identify the right local session from supplied cookies (or other methods, in a pinch).
  
  
  ---
  
  ### Answer by username_1 on 2015-06-15. Score: 0
  
  To view the cookie / session information on profile submission:
  
  * Read [Debugging for developers](http://wiki.civicrm.org/confluence/display/CRMDOC/Debugging+for+developers) and become familiar with how to view values when CiviCRM is processing the form submission.
  * Go back through your posted backtrace and find where the value that fails validation is first validated. (Looks like `CRM_Core_DAO::composeQuery()` from the backtrace posted in other question.)
  * Inspect the submitted / missing value before it's validated.
  * Debug from there.
  
  
  ---
  
  