I have a requirement to run multiple sub-domains within a single Umbraco instance, all referencing the same Vendr store.
eg.
www.domain.com
books.domain.com
dvds.domain.com
Should all reference the same Vendr store, and have the same basket/vendr session. The Vendr cookie is currently being created independently for each sub domain. How can I set the cookie domain to ".domain.com"?
Hmm, that interesting. Going by the subdomains you have a store per product type? How would the basket work in this scenario? If you added books from the books domain, and then went to the dvds domain, are you still meant to be able to checkout with the different types of item?
We don't currently have a way of setting the domain on the cookie. Best I can think right now is if there is a way to hook into the request pipeline, just before returning, see if there is a Vendr cookie and if there is, set it's domain property. I'll maybe have to add a web.config setting for this in the future.
Multiple sub domains
Hi Matt,
I have a requirement to run multiple sub-domains within a single Umbraco instance, all referencing the same Vendr store.
eg.
Should all reference the same Vendr store, and have the same basket/vendr session. The Vendr cookie is currently being created independently for each sub domain. How can I set the cookie domain to ".domain.com"?
Thanks,
Paul.
Hey Paul,
Hmm, that interesting. Going by the subdomains you have a store per product type? How would the basket work in this scenario? If you added books from the books domain, and then went to the dvds domain, are you still meant to be able to checkout with the different types of item?
We don't currently have a way of setting the domain on the cookie. Best I can think right now is if there is a way to hook into the request pipeline, just before returning, see if there is a Vendr cookie and if there is, set it's
domain
property. I'll maybe have to add aweb.config
setting for this in the future.Matt
Just googled, and I think you might be able to use this in the
web.config
Matt,
Yes, the sub domains I gave were just an example, but in terms of functionality:
books.domain.com & dvds.domain.com
should function in exactly the same was as if they were browsed/added to basket from:
www.domain.com/books & www.domain.com/dvds.
The httpCookies solution seems to nave worked nicely - thank you!
is working on a reply...