# Sharing Sessions across domains

**URL:** <https://www.ruby-forum.com/t/sharing-sessions-across-domains/105446>\
**Category:** Rails\
**Created:** [May 30, 2007, 1:38am UTC](https://www.ruby-forum.com/t/sharing-sessions-across-domains/105446 "2007-05-30T01:38:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPJPJP](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/eb9ed0/32.png) [@JPJPJP](https://www.ruby-forum.com/u/JPJPJP)\
**Post date:** [May 30, 2007, 1:38am UTC](https://www.ruby-forum.com/t/sharing-sessions-across-domains/105446/1 "2007-05-30T01:38:26Z")

</div>

I want to share a session id used to identify users shopping carts  
across multiple domains…www.domain1.com, [www.domain2.com](http://www.domain2.com)  
[wwww.domain3.com](http://wwww.domain3.com).

I am going to have all the data about the order stored in a database,  
and pull the information with a session id.

All three sites will be sharing the same DB, but I need a way to share  
the session ID across all the domains. Anyone have any suggestions?
