Page 1 of 1
Use Shared Sessions not working
Posted: Thu Jun 05, 2014 11:38 pm
by platypuspuzzles
I have used shared sessions selected, in order to be able for my shopping cart to be used accross domains, however this isn't working.
No errors in error log.
Another issue occuring, that 'may' be related - I can't get https:// to load onto secondary multi site domains
domain3.com
domain4.com etc
Re: Use Shared Sessions not working
Posted: Fri Jun 06, 2014 2:42 am
by cwswebdesign
platypuspuzzles wrote:I have used shared sessions selected, in order to be able for my shopping cart to be used accross domains, however this isn't working.
No errors in error log.
Another issue occuring, that 'may' be related - I can't get https:// to load onto secondary multi site domains
domain3.com
domain4.com etc
It's an incomplete solution and won't work. Unfortunately, I haven't found a solution for it elsewhere but it would be nice to have.
DL
Re: Use Shared Sessions not working
Posted: Fri Jun 06, 2014 7:26 am
by platypuspuzzles
thank you!
Is the incomplete solution to both the shared session not working, and mutli SSL URL, or just the shared session
Re: Use Shared Sessions not working
Posted: Fri Jun 06, 2014 8:22 am
by cwswebdesign
platypuspuzzles wrote:thank you!
Is the incomplete solution to both the shared session not working, and mutli SSL URL, or just the shared session
Just the shared session. If you're using a UCC certificate,
http://sitename.com and
http://www.sitename.com are always considered to be 2 separate domains.
DL
Re: Use Shared Sessions not working
Posted: Fri Jun 06, 2014 9:14 am
by platypuspuzzles
yes, i know.
My ssl is working well - it's the config of mutli domains causing issue - it looks like i need a folder for each domain to keep site specific data in, to trigger the https, google analytics code etc.
that's how my previous host had it set up, and my secondary domains worked with their own SSL URL...but when I changed to 1.5.x and reconfigered my file set up, according to the instructions given by opencart (all folders to link to public_html), they no longer apply https:// when going to checkout
Re: Use Shared Sessions not working
Posted: Fri Jun 06, 2014 9:45 am
by ocaddons
@platypuspuzzles,
From my pointer of view, it just need to use the database driven session to achieve the shared session. It means you have to create a database table to store the session data and adjust a few of code about the session section.
Re: Use Shared Sessions not working
Posted: Fri Mar 23, 2018 9:32 pm
by nikksan
ocaddons wrote: ↑Fri Jun 06, 2014 9:45 am
@platypuspuzzles,
From my pointer of view, it just need to use the database driven session to achieve the shared session. It means you have to create a database table to store the session data and adjust a few of code about the session section.
Regardless of whether you store the session - whether in the db or the native server file system, you cant share the session_id if you are using different domains. (not subdomains)
Re: Use Shared Sessions not working
Posted: Fri Mar 23, 2018 9:37 pm
by straightlight
nikksan is correct here. The generated session ID is only per domain purposes whether it's for local or backward compatibility purposes.