Page 1 of 1

FEU and subdomain for Shop

Posted: Sun Mar 23, 2014 2:35 pm
by janvl
Hi,

I have a peculiar problem.

I have a website with a domain - ;http://www.domain.tld
then put the shop in a subdomain - shop.domain.tld

Now if you login to FEU in the wrong domain, and you change from shop to site or vice versa FEU tell you are not logged in.
This probably arranged by a session-cookie.

So the question is can one "share" a session-cookie between 2 domains?

Or is there another solution?

btw CMSMS 1.11.9

Kind regards,
Jan

Re: FEU and subdomain for Shop

Posted: Sun Mar 23, 2014 8:57 pm
by JohnnyB
Well, shop.domain.tld is the same as domain.tld/shop
Are you using a CMSMS module for the shop or a separate, 3rd party ecommerce system?

If it is all CMSMS, and if you have your CMSMS install (with FEU) at domain.tld, just point when folks go to shop.domain.tld to domain.tld/shop.

"/shop/" would be the page-alias for the landing page holding your ecommerce tags... then everything is on the same domain, same session.

Other than that, you can use a UDT to set some cookies when a FEU logs in. You can use the UDT to check if the feu session cookie is set, etc.

Re: FEU and subdomain for Shop

Posted: Fri Apr 25, 2014 4:53 pm
by janvl
I have found that the session-id is stored in the database.

The session-id is domain-dependent, that I could overwrite so it is the same for both domains.

Problem is that every kind of solution needs to be checked with each update, so the customer is better told that it is not possible within a reasonable amount of time spend to make it like he whishes.

I will tell him to use one domain name and no subdomain.

kind regards,
Jan