Answers.Body: <p>Turns out while the error message is about the session key the issue is with the stripe payment processor plug-in.  I'll raise the issue on the plug-in's issue queue.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-03T22:03:00.347Z
Answers.LastActivityDate: 2016-01-03T22:03:00.347Z
Answers.UserDisplayName: DaveBagler
Answers.Body: <p>I had the same issue, with a slightly different solution. After days of searching I found that my Drupal/<code>civicrm settings.php</code> file had several values altering the default settings for PHP and the way cookies were handled.</p>
  <p>After commenting out these cookies settings, civicrm was able to handle the cookies properly. Voilà, system started working properly.</p>
  <pre><code>ini_set('arg_separator.output',     '&amp;amp;');
  ini_set('magic_quotes_runtime',     0);
  ini_set('magic_quotes_sybase',      0);
  ini_set('session.cache_expire',     200000);
  ini_set('session.cache_limiter',    'none');
  ini_set('session.cookie_lifetime',  2000000);
  ini_set('session.gc_maxlifetime',   200000);
  ini_set('session.save_handler',     'user');
  ini_set('session.use_cookies',      1);
  ini_set('session.use_only_cookies', 1);
  ini_set('session.use_trans_sid',    0);
  ini_set('url_rewriter.tags',        '');
  </code></pre>
  <p>Hope this helps someone :)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T05:16:54.567Z
Answers.Text: Can you please be more specific on how you solves the problem?
Answers.UserDisplayName: Sonicthoughts
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-03T10:54:10.357Z
Answers.Text: Sorry, hopefully this is a little clearer.
Answers.UserDisplayName: jamboNum5
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T01:53:44.717Z
Answers.Text: While the error message I received from CiviCRM mentions the session, it actually has to do with loosing the ID of the contribution.
Answers.UserDisplayName: DaveBagler
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2016-02-02T16:48:50.787Z
Answers.LastActivityDate: 2022-09-08T13:07:34.453Z
Answers.LastEditDate: 2022-09-08T13:07:34.453Z
Answers.UserDisplayName: jamboNum5
Answers.Body: <p>I cannot comment (rep), but I will edit this post later:</p>
  
  <p>Can you provide more info:  </p>
  
  <ul>
  <li>Is it a Contribution page or Event regi?</li>
  <li>1-time contribution or recurring?</li>
  <li>Memberships, or other features enabled?</li>
  <li>Any other extensions enabled?</li>
  <li>Any errors in the browser JS console?</li>
  <li>Any browser extensions that might get in the way (Ghostery / ABP)?</li>
  <li>What version of Stripe API (in your stripe.com dashboard)?</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T01:52:32.947Z
Answers.Text: Sorry drastik, I've been busy with other projects but will update the Github issue soon.  Basically I found a work around by using the latest commit of webhook.php and an older commit for the rest of the module.
Answers.UserDisplayName: DaveBagler
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-18T19:09:01.277Z
Answers.LastActivityDate: 2016-01-18T19:09:01.277Z
Answers.UserDisplayName: drastik
Body: <p>I've upgraded from 4.4 to 4.6.10 on Drupal 7.41. I'm getting the following issue when attempting to make a contribution:</p>
  
  <blockquote>
    <p>We can't load the requested web page. This page requires cookies to be
    enabled in your browser settings. Please check this setting and enable
    cookies (if they are not enabled). Then try again. If this error
    persists, contact the site adminstrator for assistance.<br />Site Administrators: This error may indicate that users are
    accessing this page using a domain or URL other than the configured
    Base URL. EXAMPLE: ...<br /><br />Error type: Could not find a
    valid session key.</p>
  </blockquote>
  
  <p>I didn't have this problem before updating to 4.6.10.</p>
  
  <p>I have cookies enabled.</p>
  
  <p>I have confirmed that the Civi and Drupal base URLs are the same and match what is in the address bar of my browser.</p>
  
  <p>Drupal caching is currently disabled.</p>
  
  <p>I have a user 0 in my Drupal database.</p>
  
  <p>Finally and this is the weird thing, when I get the error if I click the back button and resubmit the form it works fine.</p>
  
  <p>Does anyone have a solution or work around for this problem?</p>
  
  <h3>Updates</h3>
  
  <p>Turns out while the message references sessions it has to do with the contribution page losing the ID but it's an issue with the payment plugin.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-01-01T01:40:02.217Z
Comments.Text: From my back trace it looks like the call that's failing is https://github.com/civicrm/civicrm-core/blob/4.6/CRM/Contribute/Form/ContributionBase.php#L212
Comments.UserDisplayName: DaveBagler
Tags: <civicontribute><drupal><session>
Title: Session Key issues after upgrading from 4.4 to 4.6
ThreadText: # Session Key issues after upgrading from 4.4 to 4.6
  
  (Asked by: username_0 on 2016-01-01)
  
  I've upgraded from 4.4 to 4.6.10 on Drupal 7.41. I'm getting the following issue when attempting to make a contribution:
  
  > We can't load the requested web page. This page requires cookies to be
  > enabled in your browser settings. Please check this setting and enable
  > cookies (if they are not enabled). Then try again. If this error
  > persists, contact the site adminstrator for assistance.  
  > Site Administrators: This error may indicate that users are
  > accessing this page using a domain or URL other than the configured
  > Base URL. EXAMPLE: ...  
  >   
  > Error type: Could not find a
  > valid session key.
  
  I didn't have this problem before updating to 4.6.10.
  
  I have cookies enabled.
  
  I have confirmed that the Civi and Drupal base URLs are the same and match what is in the address bar of my browser.
  
  Drupal caching is currently disabled.
  
  I have a user 0 in my Drupal database.
  
  Finally and this is the weird thing, when I get the error if I click the back button and resubmit the form it works fine.
  
  Does anyone have a solution or work around for this problem?
  
  ### Updates
  
  Turns out while the message references sessions it has to do with the contribution page losing the ID but it's an issue with the payment plugin.
  
  **Tags:** civicontribute, drupal, session
  
  > **Comments:**
  > **username_0**: From my back trace it looks like the call that's failing is https://github.com/civicrm/civicrm-core/blob/4.6/CRM/Contribute/Form/ContributionBase.php#L212  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2016-01-03. Score: 1 | Accepted answer
  
  Turns out while the error message is about the session key the issue is with the stripe payment processor plug-in. I'll raise the issue on the plug-in's issue queue.
  
  
  ---
  
  ### Answer by username_1 on 2016-02-02. Score: 1
  
  I had the same issue, with a slightly different solution. After days of searching I found that my Drupal/`civicrm settings.php` file had several values altering the default settings for PHP and the way cookies were handled.
  
  After commenting out these cookies settings, civicrm was able to handle the cookies properly. Voilà, system started working properly.
  
  ```
  ini_set('arg_separator.output',     '&amp;');
  ini_set('magic_quotes_runtime',     0);
  ini_set('magic_quotes_sybase',      0);
  ini_set('session.cache_expire',     200000);
  ini_set('session.cache_limiter',    'none');
  ini_set('session.cookie_lifetime',  2000000);
  ini_set('session.gc_maxlifetime',   200000);
  ini_set('session.save_handler',     'user');
  ini_set('session.use_cookies',      1);
  ini_set('session.use_only_cookies', 1);
  ini_set('session.use_trans_sid',    0);
  ini_set('url_rewriter.tags',        '');
  
  ```
  
  Hope this helps someone :)
  
  > **Comments:**
  > **username_2**: Can you please be more specific on how you solves the problem?  
  > **username_1**: Sorry, hopefully this is a little clearer.  
  > **username_0**: While the error message I received from CiviCRM mentions the session, it actually has to do with loosing the ID of the contribution.  
  
  ---
  
  ### Answer by username_3 on 2016-01-18. Score: 0
  
  I cannot comment (rep), but I will edit this post later:
  
  Can you provide more info:
  
  * Is it a Contribution page or Event regi?
  * 1-time contribution or recurring?
  * Memberships, or other features enabled?
  * Any other extensions enabled?
  * Any errors in the browser JS console?
  * Any browser extensions that might get in the way (Ghostery / ABP)?
  * What version of Stripe API (in your stripe.com dashboard)?
  
  > **Comments:**
  > **username_0**: Sorry username_3, I've been busy with other projects but will update the Github issue soon.  Basically I found a work around by using the latest commit of webhook.php and an older commit for the rest of the module.  
  
  ---
  
  