Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Payment Modules / 2chcekout shows "login time out" after the customer pays

2chcekout shows "login time out" after the customer pays

Started by lina0962 on 19 Dec 2014, 2:22 PM · Views: 3,380

Results 1 to 17 of 17
19 Dec 2014, 2:22 PM
#1
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #1 by lina0962

Recently my customers complain that they encounter a "Whoops! Your session has expired." page after they keyed in the credit card info. In my 2checkout account, I can see their transaction going through.

in the Zencart backstage, there is no order generated and no order confirming email sending out.

Any suggestions??

25 Dec 2014, 1:36 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

In your admin > tools > server version info look for php settings

max_execution_time
max_input_time

Post the values for both back here

Zen-Venom Get Bitten

25 Dec 2014, 3:55 AM
#3
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #3 by lina0962

Thanks for reply! Here is the values on RoseforLove.com

The max_execution_time is 60 (local value) and 30(master value)
The max_input_time is 60 (local value) and 60(master value)

I have the exactly the same number on my best4future.com. But 2checkout works fine on best4future.com and customers see the "thank you for your order" right after they key in the credit card info.

I don't understand which part went wrong on RoseforLove.com.....

25 Dec 2014, 10:21 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Check with your host to see if you can load a personal php.ini file

If so, change these values to 90 and see if that helps

Zen-Venom Get Bitten

25 Dec 2014, 11:40 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #5 by drbyte

Kobra, login timeout is a session issue, not a max execution time or input time issue.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Dec 2014, 12:08 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

DrByte:

login timeout is a session issue
Ok then - What controls session length

Zen-Venom Get Bitten

26 Dec 2014, 12:24 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

I suspect the problem here is 2checkout is failing to pass back then zenid, or the ZC session cookie isn't getting set properly beforehand, which would be a conflict with the server settings, or a defect in the 2checkout module, wherever it came from.

A less likely cause could be that something is causing 2checkout to communicate back-and-forth to the store multiple times without completing payment and causing the system to think someone is triggering multiple failed payment attempts, so it logs them out to protect against card slam-ming that is done by people "testing" stolen credit cards. If the 2checkout module is actually doing that then it may be necessary to raise the limit before the protection kicks in.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Dec 2014, 11:25 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

lina0962:

But 2checkout works fine on best4future.com
Noting DrBytes post
You did not state if these two installs are the same version of ZenCart...

Zen-Venom Get Bitten

7 Jan 2015, 10:04 PM
#9
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #9 by lina0962

I do have zenid issue with roseforlove.com. Every link still has zenid even after I installed SEO, while on the Best4Future.com, there is no zenid after each product link.

On roseforlove.com and best4future.com, the zencart version is the same. I installed the same SEO onto both sites, and the URL came out differently.

8 Jan 2015, 2:55 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

lina0962:

I do have zenid issue with roseforlove.com. Every link still has zenid even after I installed SEO, while on the Best4Future.com, there is no zenid after each product link.
On roseforlove.com and best4future.com, the zencart version is the same. I installed the same SEO onto both sites, and the URL came out differently.
I suspect there are some odd server configuration issues happening to cause the difference on those sites.
I'm not sure if that's what's causing your 2checkout stuff though. Might be. Still worth investigating that angle.

But, in the interim, I offer a suggestion for this:

lina0962:

Recently my customers complain that they encounter a "Whoops! Your session has expired." page after they keyed in the credit card info. In my 2checkout account, I can see their transaction going through.

in the Zencart backstage, there is no order generated and no order confirming email sending out.

Any suggestions??

DrByte:

I suspect the problem here is 2checkout is failing to pass back then zenid, or the ZC session cookie isn't getting set properly beforehand, which would be a conflict with the server settings, or a defect in the 2checkout module, wherever it came from.

A less likely cause could be that something is causing 2checkout to communicate back-and-forth to the store multiple times without completing payment and causing the system to think someone is triggering multiple failed payment attempts, so it logs them out to protect against card slam-ming that is done by people "testing" stolen credit cards. If the 2checkout module is actually doing that then it may be necessary to raise the limit before the protection kicks in.

Try making the change I posted here: http://www.zen-cart.com/showthread.php?215187-Session-Expires-when-returning-from-Payment-Gateway-for-a-second-time&p=1264278#post1264278

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Jan 2015, 10:31 PM
#11
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #11 by lina0962

DrByte:

I suspect there are some odd server configuration issues happening to cause the difference on those sites.
I'm not sure if that's what's causing your 2checkout stuff though. Might be. Still worth investigating that angle.

Yes, there is some server configuration involved. I am using bluehost.com. I use RoseforLove.com as the primary account domain name, while other domain names as add-on domains. Originally, other websites, such as Best4Future.com appear as www.RoseforLove.com/Best4Future. I called Bluehost technicians and they did something to let Best4Future.com appear directly as a stand-alone domain.

According to the technician, they put .htaccess file into the server. It is like this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?roseforlove.com$
RewriteCond %{REQUEST_URI} !^/roseforlove/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /roseforlove/$1
RewriteCond %{HTTP_HOST} ^(www.)?roseforlove.com$
RewriteRule ^(/)?$ roseforlove/index.php [L]

My question is: Does this cause conflict with the .htaccess file of the SEO? Another question is, does ZENID hurt my Google ranking and navigation?

Thanks!!

30 Jan 2015, 2:26 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #12 by drbyte

Check this PHP configuration setting:

  1. Admin->Tools->Server Info ... Press CTRL+F to "search the page" and search for session.hash_bits_per_character
  2. If session.hash_bits_per_character is set to 6, then you'll need to apply this fix: http://www.zen-cart.com/showthread.php?215694&p=1270902#post1270902

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jan 2015, 2:30 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

lina0962:

My question is: Does this cause conflict with the .htaccess file of the SEO?Maybe. I couldn't know, since your ".htaccess file of the SEO" isn't something that's part of original Zen Cart code, and nobody has any way of knowing what you've put in that.

lina0962:

Another question is, does ZENID hurt my Google ranking and navigation?
Google should never be seeing zenid in your URLs if your server is properly configured. And customers should only ever see it on their 2nd click and then it should disappear on all subsequent clicks. If it's not disappearing then you've got something wrong with session configuration ... and that could be caused by your custom .htaccess rewrite rules, especially if your configure.php HTTP_SERVER and HTTPS_SERVER have a different domain than what you're rewriting the URLs to. (ie: https://www.site.com vs site.com without the www.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Jan 2015, 4:14 AM
#14
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #14 by lina0962

DrByte:

Check this PHP configuration setting:

  1. Admin->Tools->Server Info ... Press CTRL+F to "search the page" and search for session.hash_bits_per_character
  2. If session.hash_bits_per_character is set to 6, then you'll need to apply this fix: http://www.zen-cart.com/showthread.php?215694&p=1270902#post1270902

I did as you suggested, both "local value" and "master value" come out as "5"

30 Jan 2015, 4:29 AM
#15
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Post #15 by lina0962

Google should never be seeing zenid in your URLs if your server is properly configured. And customers should only ever see it on their 2nd click and then it should disappear on all subsequent clicks. If it's not disappearing then you've got something wrong with session configuration ... and that could be caused by your custom .htaccess rewrite rules, especially if your configure.php HTTP_SERVER and HTTPS_SERVER have a different domain than what you're rewriting the URLs to. (ie: www.site.com vs site.com without the www.

RoseforLove.com does have the problem that all subsequent clicks still have zenid. Do you see anything wrong with .htaccess rewrite rules posted by the bluehost?

This is the .htaccess by bluehost: RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?roseforlove.com$
RewriteCond %{REQUEST_URI} !^/roseforlove/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /roseforlove/$1
RewriteCond %{HTTP_HOST} ^(www.)?roseforlove.com$
RewriteRule ^(/)?$ roseforlove/index.php [L]

And this is .htaccess by SEO:

Seo Urls version 3.x

Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?seo_url=$1&%{QUERY_STRING} [L]

30 Jan 2015, 6:12 PM
#16
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #16 by lhungil

lina0962:

... Do you see anything wrong with .htaccess rewrite rules posted by the bluehost? ...
Can you please supply the full .htaccess files wrapping the content inside code tags (ex:```
[CODE]contents of the .htaccess file[/CODE]



Can you also post the contents of "/includes/configure.php" and "/roseforlove/includes/configure.php" (remove the lines with DB_SERVER_USERNAME and DB_SERVER_PASSWORD)? Please also wrap the contents of these files with code tags (makes them easier to read).

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

30 Sep 2015, 1:19 PM
#17
cjmsmit avatar

cjmsmit

New Zenner

Join Date:
Sep 2015
Posts:
3
Plugin Contributions:
0

Post #17 by cjmsmit

I'm not sure if I can post it here, but I can't find how to make a new thread.
The problem I encounter is that sometimes people forget to return to the shop from an external paymentpage (in my case TargetPay). If they don't return, the order is not saved, so I receive the payment but haven't got a clue what they're paying for.
Is there a way to save the order before entering the external payment page?