Post by ThePath » Tue Jul 14, 2009 9:45 pm

Ive placed this on another thread here: http://forum.opencart.com/viewtopic.php?f=31&t=4410 but thought it should really be a new topic:

Well Ive been trying to get this to work for over an hour now and am admitting defeat and asking for help.

OK so I am on a shared host but have a dedicated IP and SSL. So i have a root domain (with SSL) and subdomains (sharing root domains SSL).

So i need to pass the session data from http://www.myshop.com to https://rootdomain.com/myshop/

I have

Code: Select all

session.cookie_domain = ".rootdomain.com"
in the root domain php.ini and I have

Code: Select all

session.cookie_domain = .rootdomain.com;
in the myshop php.ini

This isnt working so presume it isnt right, Ive also tried

Code: Select all

session.cookie_domain = .myshop.com;
in the myshop php.ini

Can anyone help me? >:(

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by Qphoria » Tue Jul 14, 2009 9:55 pm

I made some progress with this on CrC using these as a guide.

http://techtinkering.com/articles/?id=2
http://www.webdeveloper.com/forum/showt ... hp?t=87633

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ThePath » Tue Jul 14, 2009 10:53 pm

OK Ive had a look at the links you provided, where does the session get started in opencart i.e. which file contains: session_start();

Thanks again

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by ThePath » Tue Jul 14, 2009 11:01 pm

Think I found it system/startup.php

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by ThePath » Wed Jul 15, 2009 3:06 am

Im totally stumped on this one? Anybody got any ideas? Daniel?

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by Daniel » Wed Jul 15, 2009 3:08 am

All it can say is look at the session class and look at the documentation on the php.net site about the session handler.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by ThePath » Wed Jul 15, 2009 3:16 am

OK Ive found the session class and will have a bash at it but bet I break it!

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by ThePath » Wed Jul 15, 2009 7:37 pm

I wee update on this incase anybody is trying the same thing, so far Ive tried setting the domain manually;

Code: Select all

@session_set_cookie_params(0, '/');
turned into

Code: Select all

@session_set_cookie_params(0, '/', '.rootdomain.com');
this didnt work, I then tried to use 'GET' cookie params which also made no difference.

Hopefully someone brighter than me solves this as its quite a key issue for many with shared SSL.

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by plastio » Mon Oct 19, 2009 4:37 pm

Did you ever solve the issue ?

Newbie

Posts

Joined
Fri Jul 24, 2009 11:20 pm

Post by ThePath » Tue Oct 20, 2009 12:07 am

Hi,

No I didnt really. Well I used to be hosted with Bluehost who were most unhelpful. Because I got pissed of with them I started my own hosting company so no longer have the issue.

Plus if you use Worldpay or the basic level of integration with Sagepay you dont need to use the HTTPS as the payment gateways have all the security you need to protect customers card details.

Sorry I couldnt offer more help on this. My advise is if you are having similar problems to source a host that can solve the problem or get yourself a dedicated server if you are flush!

Image

OpenCart Theme Options - See All My Extensions - OpenCart Themes and Mods


User avatar
Active Member

Posts

Joined
Fri Jun 26, 2009 11:53 pm
Location - Scotland

Post by Daniel » Tue Oct 20, 2009 3:39 am

Look passing from

http://www.yourstore.com

to

https://www.yourstore.com

works fine!

Its when you share an SSL certifcate on a sub domain it will not work!

Such as;

https://secure.yourstore.com


How do you expect a cookie to pass between 2 domain names? its a big security risk!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Tue Oct 20, 2009 5:33 am

ZenCart, OSC, and all others do it. It's not really a risk as shared ssl is quite popular. We'll figure it out eventually.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 195 guests