Zen Cart Logo
Forums / Bug Reports / payer auth verifier causes session timeout error

payer auth verifier causes session timeout error

Views: 15,829

Results 41 to 46 of 46
21 Sep 2020, 8:31 AM
#41
terragirl avatar

terragirl

Zen Follower

Join Date:
Jun 2010
Location:
Austria
Posts:
123
Plugin Contributions:
0

payer auth verifier causes session timeout error

lat9:

Create a file named /includes/extra_configures/samesite_cookie.php containing

<?php // ----- // Samesite cookie needs to be none since the payment method uses iframes. // define('COOKIE_SAMESITE', 'none'); ``` Hi lat9, Many thanks! I've tested the suggested code & my test order worked :) As this is a such a serious bug, can I ask that this information is included in the official 1.5.7 bug thread? To confirm the change that worked for me is the samesite_cookie.php file. In addition, I've kept the changes by Dr Byte as per [https://github.com/zencart/zencart/pull/3802/files](https://github.com/zencart/zencart/pull/3802/files). Many thanks for your help! Edith
21 Sep 2020, 8:54 AM
#42
terragirl avatar

terragirl

Zen Follower

Join Date:
Jun 2010
Location:
Austria
Posts:
123
Plugin Contributions:
0

Re: payer auth verifier causes session timeout error

Addendum: Looking at the logs, the PHP warning persists, but payment / checkout now works. For both successful payments I tested today, I got corresponding entries in the logs with my IP address:

[21-Sep-2020 08:30:17 UTC] Request URI: /index.php?main_page=payer_auth_verifier, IP address: 90.XXXX
#1  session_id() called at [/home/USER/public_html/includes/modules/pages/payer_auth_verifier/header_php.php:55]
#2  require(/home/USER/public_html/includes/modules/pages/payer_auth_verifier/header_php.php) called at [/home/USER/public_html/index.php:35]
--> PHP Warning: session_id(): Cannot change session id when session is active in /home/USER/public_html/includes/modules/pages/payer_auth_verifier/header_php.php on line 55.

This seems to imply that the PHP warning about sessions was not the root cause for the failed checkout payments. Failed payments was fixed by the samesite cookie file for my site; whereas the session warnings persist. But as these warnings do not appear to have any impact on checkout / payments, I'm going to ignore them for now. Only adding this for other users with the same issue to say that the session warning is a red herring as far as failed payments go.

21 Sep 2020, 9:52 AM
#43
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: payer auth verifier causes session timeout error

I'm still noticing some time_out issues during checkout.

I'm not convinced this is 100% fixed.

4 Oct 2020, 7:27 PM
#44
kalm avatar

kalm

New Zenner

Join Date:
Aug 2020
Location:
Finland
Posts:
12
Plugin Contributions:
0

Re: payer auth verifier causes session timeout error

DigitalShadow:

I'm still noticing some time_out issues during checkout.

I'm not convinced this is 100% fixed.

I am also not convinced, that the problem is fixed. Also getting time_outs from time to time.

My problem was in this treat: https://www.zen-cart.com/showthread.php?227136-Bambora-Payform-Session-expired-after-some-payments-instead-of-checkout_success&p=1372487#post1372487

3 Nov 2020, 3:48 PM
#45
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: payer auth verifier causes session timeout error

I am getting this error after upgrading to 1.57a , never had this error until then. Tried normal checkout and custom checkout, paypal seems fine, but using UK paypal express card checkout it log you out and you get an error like this below (shortened version below) just where it normally connects to bank:-

We are sorry, but your login session has expired. Your shopping selections have been saved

I tried the 1.58 sessions file but seems to be the same. I was careful with merges when upgrading, everything else seems to be working just this sessions and cards thing.

5 Nov 2020, 11:38 AM
#46
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: payer auth verifier causes session timeout error

HeathenMagic:

I am getting this error after upgrading to 1.57a , never had this error until then. Tried normal checkout and custom checkout, paypal seems fine, but using UK paypal express card checkout it log you out and you get an error like this below (shortened version below) just where it normally connects to bank:-

I tried the 1.58 sessions file but seems to be the same. I was careful with merges when upgrading, everything else seems to be working just this sessions and cards thing.

I think I sorted it, need to test more but getting success on payer auth frame so far. I tried Lat9 suggest in post #40 and the 1.58 init_sessions.php version suggested by Dr Byte. Might help somebody else using 1.57a if they have same setup using UK paypal card payment module.