Note that there are some explanatory texts on larger screens.

plurals
  1. POSharing Sessions with 302 Redirects/IMG SRC/ JSON-P and implications with Google SEO/Pagerank or Other Problems
    primarykey
    data
    text
    <p>I am currently researching the best way to share the same session across two domains (for a shared shopping cart / shared account feature). I have decided on two of three different approaches:</p> <p>Every 15 minutes, send a one time only token (made from a secret and user IP/user agent) to "sync the sessions" using:</p> <ol> <li><p>img src tag</p> <p>img src="http://domain-two.com/sessionSync.png?token="urlsafebase64_hash"</p> <ul> <li><p>displays an empty 1x1 pixel image and starts a remote session session with the same session ID on the remote server. The png is actually a PHP script with some mod_rewrite action.</p></li> <li><p>Drawbacks: what if images are disabled?</p></li> </ul></li> <li><p>a succession of 302 redirect headers (almost same as above, just sending token using 302's instead:</p> <ul> <li>redirect to domain-2.com/sessionSync.php?token="urlsafebase64_hash"</li> <li><p>then from domain-2.com/sessionSync, set(or refresh) the session and redirect back to domain-1.com to continue original request. </p></li> <li><p>QuestionL What does Google think about this in terms of SEO/Pagerank?? Will their bots have issues crawling my site properly? Will they think I am trying to trick the user?</p></li> <li><p>Drawbacks: 3 requests before a user gets a page load, which is slower than the IMG technique.</p></li> <li>Advantages: Almost always works?</li> </ul></li> <li><p>use jsonp to do the same as above.</p> <ul> <li>Drawbacks: won't work if javascript is disabled. I am avoiding this option because of particularly this.</li> <li>Advantages: callback function on success may be useful (but not really in this situation)</li> </ul></li> </ol> <p>My questions are:</p> <ul> <li>What will google think of using 302's as stated in example 2 above? Will they punish me?</li> <li>What do you think the best way is?</li> <li>Are there any security considerations introduced by any of these methods?</li> <li>Am I not realizing something else that might cause problems?</li> </ul> <p>Thanks for all the help in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload