Posted: May 1, 2020 at 3:21 pm
I need to stop this PHPSESSID cookie from being set by EE. It’s causing me to fail my PCI Scan. I’m pretty sure that EE is the only plugin that’s responsible for this cookie. |
|
Hi Susan, Event Espresso actually needs the PHPSESSID session cookie. Without it, the registration process will not work. May I ask what was the message from the PCI scan failure? If the message was “Cookie Does Not Contain The “secure” Attribute” then you could contact your server administrator and ask them to follow this guide: |
|
Thanks, Josh. It’s this: Non-HttpOnly Session Cookies Identified So I think that’s what you’re referring to. I’ve already contacted my host company and they said: “Unfortunately, due to management decisions, we are no longer supporting PCI compliance on our servers. We removed all advertisements for the PCI compliance and I am afraid it will not be possible to apply such customization to the server setup. As you are probably aware, we are in the middle of software transition. We are changing from cPanel to our own custom in-house site management tool called Site Tools. We currently postpone any form of custom setups such as the PCI compliance for our servers because the modifications might not work properly on the new setup.” Is it possible to remedy this if I alter my php.ini file instead? This is sort of a big deal because if the host won’t alter anything for us, we’ll have to leave the host or leave EE. 🙁 |
|
Hi Susan, May I ask, which level of compliance are you working towards? Which payment method are you using? If your host is not prepared to implement changes to maintain PCI compliance then it’s more than likely you’ll need to switch hosts, even if you chose to move away from Event Espresso to use another e-commerce platform as the majority of steps you’ll need to take to be compliant are server-side and have very little to do with Event Espresso itself. You could try adding:
to your sites Or, set it within your php.ini file using Take a look here: |
|
Thanks, Tony. I’ll try the wp-config suggestion and see if I can pass. I believe we’re Level 4 compliance – not that many transactions. We host with SiteGround |
|
If you load your site using Chrome and open up Chrome Dev Tools you can check if the change actually worked or not through that. Open it up and go to the Network tab. Refresh the browser to load all of the contents of the site whilst in dev mode. Click on the first instance of your domain in the list and view cookies: https://monosnap.com/file/Qme3Zd4O3YK8tHSp3J08kHmdmSiEnJ (Note I’ve blurred any identifying info in the screenshot as you haven’t posted your site here but I’m guessing you can tell if that’s your site from what is visible) |
|
Also, as your using Auth.net Accept are you are working through SAQ-A currently? |
|
I can see the cookie is still loading – I already made the update to our wp-config file, per your instructions, then checked the cookie and rescheduled the scan. We are still failing the scan, despite the change. I also got this error message in my WP Dashboard after I made the wp-config file change.
Should I remove that edit to the wp-config file? |
|
As far as SAQ-A, I don’t know but I assume so. |
|
Sounds like the code isn’t making a difference, so yes. You could try adding this to the beginning of your
Sounds like there is something else going on as that change wouldn’t de-activate the Auth.net accept add-on. Remove the code from wp-config.php, re-activate the add-on and try the code above in |
|
I’ve reactivated the Auth.net Accept payment method but the error message persists. Accept uses an iframe method, as you know, and it presents itself in a box with a horizontal scrollbar. I don’t remember it looking like that prior to this point. I wasn’t able to make your .htaccess idea work. I got a 500 error when I tried it. Thanks for trying to solve this for me. If you can offer any advice about the error message for the Accept plugin, let me know. |
|
The error message being the one with regards to the payment method de-activating? If so, that’s a persistent notice and will stay until you dismiss it as its an important message. If you dismiss it and the notice instantly re-appears then there are other issues.
The code I gave you doesn’t change anything on the site, so it was likely like that prior to this unless you had some custom CSS on the site altering the output? Is there a test event I can run a registration on to view this?
You really need your host to set this up for you, but apparently they are unwilling to do so. To be honest, my advice would be to change hosts as I’m not sure how else you would work through this if they won’t. |
|
Thanks again – really appreciate the help! |
|
Tony, I wanted to let you know that these lines, added to my php.ini file did the trick. I was able to pass the Trustwave PCI scan. session.cookie_httponly = 1 |
|
The support post ‘PHPSESSID’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.