Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Suddenly having problem with client login

Suddenly having problem with client login

Started by laki on 17 Dec 2015, 12:43 PM · Views: 1,079

Results 1 to 11 of 11
17 Dec 2015, 12:43 PM
#1
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #1 by laki

Hi,

I have problem with login / register page on my website because of login time out. My existing clients aren't able to login as well as new ones who aren't able to register getting the message "login session has expired". This means they can't access their profile or login to make a purchase. This problem has appeared recently for the first time.

Does anyone know why this happen and how to fix this serious issue?

Thank you.

17 Dec 2015, 1:42 PM
#2
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #2 by laki

Let me provide you with more details about the problem explained above.
I can login to my admin area regularly and work in. As I said the problem appears only with login/register page in all browsers.
I've found topics on the forum with similar problem and have tried some of suggestions that I found there but haven't fixed my problem.

17 Dec 2015, 4:19 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

Answering the Posting Tips are always a help ...

Have you an URL to your site?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Dec 2015, 4:39 PM
#4
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #4 by laki

Thanks Ajeh :))

This is URL: http://com-shop.me/
This is login page http://com-shop.me/index.php?main_page=login&language=en
(I provided you with the login page on English)

One thing in addition to my previous explanation of the problem. I set up URL of my store as the primary domain on my hosting instead of other website few days ago. This is the only Zen cart website On the hosting. Few others are WordPress blogs.

In the meantime I haven't installed any plugin or made changes in the configuration settings. I can login to admin area but my can't login as a customer on the website or register. When I try to do it I get a message that the session has expired.

Best,

17 Dec 2015, 5:08 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

This is not a login problem. It's a session problem ... caused by incorrect cookies.

Your store is setting the session cookie incorrectly. The Cookie Path is getting set to /ComShop ... as though you're trying to tell it that the store is in a subfolder.

Are you using Apache?
Do you have some .htaccess rules that are interfering?
If your admin is working fine, then you've probably got different .htaccess translations in the admin folder vs the non-admin area.

If you're not using Apache, do you have other rules configured in your webserver engine with how the domain is configured? (Did you "copy" the domain config from the other server, instead of setting it up bespoke on the new server so that the new domain config is untainted by the old server config?)

.
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.

17 Dec 2015, 5:45 PM
#6
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #6 by laki

I'm using Appache.

The store is in public_html/ComShop folder. The .htaccess files in non-admin and admin area within ComShop folder haven't been edited. But there is .htaccess file in public_html folder that has recently been edited when this domain (com-shop.me) was set up as primary on the hosting. I think this is edited in the .htaccess file in public_html folder:

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

If you need .htaccess files from ComShop folder to have a look I'll show its code.

17 Dec 2015, 5:58 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

... and does renaming that .htaccess file to .htaccess_OFF solve the problem?

.
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.

17 Dec 2015, 6:08 PM
#8
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #8 by laki

No, it doesn't solve the problem. If I rename .htaccess file in public_html I can't open website regularly, I only see a tree of directories.

17 Dec 2015, 6:17 PM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

Okay. Reconfigure your Apache settings so that the domain "docuemnt root" is actually your ComShop folder ... instead of using .htaccess to rewrite things incorrectly.

.
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.

17 Dec 2015, 6:32 PM
#10
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #10 by laki

Okey. I'm not confident how to do this. Do you have any suggestion how I can do this?

I expexted that my login page open with this link main_page=login
But it doesn't happen. I see this: http://com-shop.me/index.php?main_page=login

17 Dec 2015, 8:13 PM
#11
laki avatar

laki

New Zenner

Join Date:
Aug 2013
Location:
Montenegro
Posts:
72
Plugin Contributions:
0

Post #11 by laki

I solved this problem. I set up this in Configuration / Session: Use root path for cookie path --> True (it was False)

As I said, I set up my store domain as the primary domain for my hosting and that probably caused the problem with the cooke path. Since that point Zen Cart haven't used the directory where the store resides as the cookie path.

Thank you for support!

Laki