Subdomain query

When working with my app with subdomain support (with plugin
account_location), I have following issue: From the main domain, user
can register (with information about subdomain). After successful
register, the app will log user in and forward to corresponding
subdomain. The problem here is that after redirecting, all session
data get lost (i think because the subdomain is considered another
website from the main domain), so I can’t retain info about newly
created data.
Is there any solution to this problem? I think that if I use db for
session store, I can get session data from db, but I want a generic
solution.

I’m not sure about RoR, but I expect the following applies… certainly
when
using PHP or JSP there is a scope higher than session scope and that is
application scope - application scope variables are accessible by any
website regardless of sessions as long as the browser remains open.


Gareth Howells, CertHE (Dunelm), BCS
CEO, GForce Industries

garethATgforce-industriesDOTcoDOTuk
07862725134

GForce Industries
86, Warwick Avenue,
Quorn,
Loughborough,
LEICS.
LE12 8HE
----- Original Message -----
From: “[email protected][email protected]
To: “Ruby on Rails: Talk” [email protected]
Sent: Sunday, February 10, 2008 4:24 PM
Subject: [Rails] subdomain query

hi can anyone tell me this thing

On Feb 10, 9:51 pm, “Gareth Howells” <subscripti…@gforce-

On 26 Feb 2008, at 09:29, [email protected] wrote:

hi can anyone tell me this thing

You need to ensure that the session cookie is set to for foo.com, not
xyz.foo.com
You can probably change this with
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, but i don’t
have the details to hand.

Fred