Current time: 12-16-2017, 03:46 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cookies domains over more than 1 protocol
06-14-2014, 05:53 AM
Post: #1
cookies domains over more than 1 protocol
Hello Community,
How does one simply implement a cookie-less domain solution when using more than 1 protocol (http/https)?

For example:

cookie-less domain used: http://www.abc.com
http URL: http://www.xyz.com
https URL: https://www.xyz.com

In the HTTP state, the cookie-less domain will not prompt any mix content messages but it will most likely will prompt when in an HTTPS state (i.e. IE browsers).

Any thoughts?

Thanks.

TRX
Find all posts by this user
Quote this message in a reply
06-16-2014, 04:35 AM
Post: #2
RE: cookies domains over more than 1 protocol
1. Make sure the cookieless domain can support both HTTP and HTTPS

2. Reference the resources on it using a schemaless URL e.g. //www.abc.com i.e. URLs that don't start with http: or https:

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
06-16-2014, 04:40 PM
Post: #3
RE: cookies domains over more than 1 protocol
I like #2. I've never tried it before. I'll give it a try and let you know how it goes. Thanks!
Find all posts by this user
Quote this message in a reply
06-17-2014, 05:06 AM
Post: #4
RE: cookies domains over more than 1 protocol
Only thing to watch out for with schema-less urls is CSS files and older versions of IE (doesn't break anything so probably worth ignoring at this point). Paul Irish has a good post on it here: http://www.paulirish.com/2010/the-protoc...ative-url/
Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2014, 06:56 AM
Post: #5
RE: cookies domains over more than 1 protocol
I think Steve or Stoan have a post about one of the older IEs (7/8?) making duplicated requests with schemaless URLs but I couldn't find when I went looking

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
06-17-2014, 07:00 AM
Post: #6
RE: cookies domains over more than 1 protocol
Yeah, that would be the IE issue I mentioned ;-) It only impacts CSS resources that are imported or linked AFAIK and it just downloads twice but doesn't actually break the page - which seems like a fair thing to ignore for versions of IE that are very risky for users to be using at this point anyway.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)