In short, yes - sessions will work through several web speakers.
Sessions work through web speakers - because the design of the session support rails allows you to do this. In any case, the web dino model just needs to be scaled horizontally.
1. Every time you get into the application, do you usually connect to another web dino?
Based on heroku documentation:
The routing grid is responsible for locating the web speakers of your applications in a dynamic manifold and forwarding an HTTP request to one of these speakers. Dyno selection is performed using a random selection algorithm.
Thus, the choice of speaker is random ... but for this dinosaur your application must be installed. Therefore, if you have several speakers, you can connect to another dino (which is important, because it facilitates load balancing and high availability).
2. Can sessions work on different web games?
Yes. Most web stacks support sessions by doing the following:
- Assigning a session identifier, which is a unique identifier, and is usually set as a session cookie, so the browser will always send the identifier with ANY HTTP request to the source host
- Providing a store that maps the session identifier to actual session data
Thus, in this process, sessions can be supported, since each incoming HTTP request has a session identifier that is available to the web dino when it processes your request.
3. Does it work for different Rails session stores (ActionDispatch :: Session :: CookieStore, ActiveRecord :: SessionStore and ActionDispatch :: Session :: CacheStore)
ActionDispatch :: Session :: CookieStore Yes. The cookie storage stores encrypted session data as cookies. Thus, your browser sends all session data (encrypted) back to the host, which is then decrypted for use in your application.
ActiveRecord :: SessionStore Yes. A cookie storage stores encrypted session data in a database table. The identifier is then assigned as a cookie. Thus, your browser sends the identifier to the host, which is then used to download session data from the database. Since all web dynodes have a database connection, this means that it is also supported.
ActionDispatch :: Session :: cache storage Yes, but you need a cache storage service (for example, the MemCache addon). The cookie storage stores encrypted session data in the memcache storage, which is a common service for all web speakers. The identifier is then assigned as a cookie. Thus, your browser sends the identifier to the host, which is then used to download session data from the memcache.