Hi, i need that all the subdomains of an app (using subdomain_fu) use
‘.domain.com’ as domain for all cookies.
I’ve set ActionController::Base.session_options[:domain] = ‘.domain.com’
and it works…for just the session… how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
“I’ll read the doc before asking”*100000
Found, it’s just a simple :domain => at the creation of the cookie
Sorry for the noise
On Thu, Jul 2, 2009 at 7:55 AM, Xdmx
Xdmx[email protected] wrote:
Hi, i need that all the subdomains of an app (using subdomain_fu) use
‘.domain.com’ as domain for all cookies.
I’ve set ActionController::Base.session_options[:domain] = ‘.domain.com’
and it works…for just the session… how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
Read the Rails API doc?
–
Hassan S. ------------------------ [email protected]