Re: Global variables, affinity, and sessions w/o cookies,
Shugo Maeda <[email protected]> Thu, 15 Jul 2004 22:49:10 +0900
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, Altec wrote: > 1. Is it possible to set a global variable that is consistent across all > Apache processes? I realized that I have 5 different global variables > of the exact same name (a simple counter) because I have 5 Apache > processes that appear to have their own mod_ruby instance. No. > 2. Is it possible to set server/browser "affinity" so that whenever > possible, the same client accesses the same Apache process repeatedly > instead of round-robin? Something like "wait", "error" or "use-any" as > options in case the same process isn't immediately available. No. > If this isn't available with mod_ruby, do you know if there are Apache > mods that enable affinity? Sorry, I don't know such mods. > 3. We're designing a dynamic site using mod_ruby + eruby that supports > browsers without javascript or cookies. Do you recommend any particular > method, library or tools to handle sessions? I'm guessing > url-rewriting. Would appreciate your thoughts & recommendations. Passing session ids by QUERY_STRING is one way. But please take care not to send session ids outside by the Referer header fields. Shugo