Created
May 26, 2011 15:48
-
-
Save elricstorm/993390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yourapp::Application.config.session_store :cookie_store | |
Yourapp::Application.config.session = { | |
:key => '_yourapp_session', # name of cookie that stores the data | |
:domain => nil, # you can share between subdomains here: '.subdomain.com' | |
:expire_after => 1.month, # expire cookie | |
:secure => false, # for https its true | |
:httponly => true, # a measure against XSS attacks, prevent client side scripts from accessing the cookie | |
:secret => 'YOUR SECRET GOES HERE' # RUN RAKE SECRET to generate secret | |
} |
Np, glad to help.
…-----Original Message-----
From: bruz [mailto:[email protected]]
Sent: Sunday, August 14, 2011 1:08 AM
To: [email protected]
Subject: Re: gist gist: 993390
Thanks for this! For some reason I had a hard time finding these session configuration options elsewhere.
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/993390
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! For some reason I had a hard time finding these session configuration options elsewhere.