Displaying 20 results from an estimated 100000 matches similar to: "Making the session cookie persistent"
2006 Jan 08
6
Persistent session cookies?
It seems Rails sessions by default only last, well, a browsing session.
If the Rails app keeps track of logged-in state by sessions, that state
doesn''t survive restarting the browser.
How best to change this behaviour, to make the session cookie live
forever, or at least beyond browser restarts?
It was suggested to me on IRC to combine sessions with code to generate
a unique id and
2007 Oct 05
8
Cookie session handling?
Hi,
I and a few folks on #camping thought it would be nice to have either
cookie based or file based session handling. This would eliminate the
need for creating a sessions table in the database (or a sequence),
which feels too heavy for a lightweight framework like Camping anyway.
Plus, we can more easily avoid nasty adapter errors. :)
The general consensus was to create a separate
2012 Oct 30
0
Can't set a secure session cookie
I''m trying to set the session cookie secure flag to true. I added the
following to my environments/production.rb
ActionController::Base.session_options[:secure] = true
In the production mode I don''t see the set-cookie header in the server
response (I''m using the Tamper Data Firefox tool to view the traffic). I
tried removing all cookies, manually setting the domain
2006 Nov 14
0
where does rails pull the session id from the cookie and connect the request with the session?
i was hoping someone could point me to the place where rails is using
the cookie to match the request to the session. i see some session
logic in cgi/session, but i can''t seem to find where it actually uses
the cookie.
fyi, i''m asking because i''m having an issue where i set the user during
login, but the redirect following the login is using (or creating) a
different
2008 Aug 21
0
session cookie missing
I am running RAILS 1.2.6 with apache balancing between a cluster of
mongrel processes. It appears that intermittently the server is not
receiving the session cookie from the browser for certain users.
Wondering what situations could cause this... I know one is if the
user has cookies turned off. Are there other situations where this
could arise? The net effect is that users experiencing this
2007 Mar 30
0
Storing an order object in a cookie based session
I have a simple e-commerce store and am running into a problem with the
edge rails cookie based sessions.
What I am trying to do is make the customer fill in their info, and
click "Review my Order". The order object is contructed, and stored in
the session (if it passes validation). The is sent to another page
where they can confirm all their info and press the "finalize
2006 Apr 28
3
persistent cookies
hello,
I am trying to implement a "remember be" box for logins, however I cant
seem to get it to work. I have tried the following 2 methods but neither
seem to work. When i check the expiry time in firefox it always says "end
of session".
What is the proper way to handle this so the session cookie "_session_id"
doesnt expire for a year?
I tried
2008 May 27
1
session question - unique identifier in cookie store?
Hi,
I recently switched to the cookie session store for my rails app, and I am
wondering how I can access some kind of unique identifier for each session
between requests. It used to be (when I was using active record store) that
the session id was set and that string didn''t change between requests. Now,
of course, the session id does change between requests because that is where
the
2006 Mar 09
4
cross domain cookies
Does anybody know how to access the domain of a cookie from inside rails?
I am try to integrate phpbb forums into my site and one of the things phpbb
does is store a cookie. The forums are at forums.domain.com and the site is
www.domain.com so i needed to set the cookie domain in phpbb to just be
".domain.com" so both sites can access it. The trouble is when using
cookies[] in rails,
2006 Feb 11
2
Session ID in a cookie?
I''ve been looking around for how to store the session ID in a cookie.
The "Agile Web Development with Rails" books seems to indicate that this
is done by default with Rails. But I don''t see a cookie being set in my
browser. (yeah, they''re enabled)
I poked through the RForum code to find something referencing "cookies"
but nothing came up.
Does
2007 Mar 01
4
Cookie based session management problems
Edge has a change in default behaviour where sessions are stored as
cookies instead of in the file system. This was a pleasant surprise when
I synced up, fired up my app, and nothing worked. Ah, life on the edge.
I''m sure I''m just missing something, but I can''t get sessions to survive
the first redirect. I added the following code to environment.rb, based
on
2006 Mar 03
2
Accessing cookie and session objects
Is it possible to directly access session and cookie objects from within
a Model? When I try to read the session object in my User Model I get
the following error:
NameError (undefined local variable or method `session'' for User:Class):
I could pass attributes taken from the session into my method in the
User Model, but this seems to go against DRY.
-Lindsay
--
Posted via
2008 Sep 14
0
How to get session's cookie string
Hi,everyone!
I have a problem:
After using session[:foo]=foo change my session, I want to know what
the new "session_key" cookie value would be before I response. I tried
session.to_s and session.encode but didn''t work.
Thanks in advance:-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2007 Jan 19
0
WEBrick cookies not persisting?
Has anyone had any experience on mac os x with WEBrick and cookies not
persisting? What I''m doing is pushing a cookie into the response obj of
a webrick request (res.cookies.push(..)). When another request comes in.
The req.cookies is empty.. ([])
Any ideas?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message
2007 Aug 17
1
Cookie Sessions in Merb?
I like the cookie sessions that Rails edge has - they make sense,
they''re fast, easy.
For those that don''t know: the default session mechanism is to give
developers a Hash called session. To store this object between
requests it Marshals the session object and sends the object itself
(now as a bitstream) back to clients to store in their cookie file. To
prevent users from
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All,
Hope this note helps the newbies to Rails
As I''m new to Rails, I''d like to share how I tracked down Safari''s
dropping of my cookie.
My Applebug no: 11003492 registered 7 March/2012
My development platform:
MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b)
Problem:
Firefox worked as programmed but switching to Safari my
current_user_token kept in the
2014 May 03
0
Putting form_authenticity_token (csrf token) in a cookie instead of in meta tags?
When you generate a default Rails app, it puts this in
application.html.erb:
<%= csrf_meta_tags %>
It does this so the remote forms can be submitted--i.e., so JavaScript can
submit a form. When jquery-rails is about to submit a form, it looks for
the <meta> tags named "csrf-param" and "csrf-token" and from them it
constructs a hidden
2006 Apr 18
1
''depot''app, trouble with session / cookies
Many of you probably know the ''depot'' app from the ''Agile Rails
development'' book.
When the view changes from ''Store'' to ''display_cart,'' a session
containing the shopping-cart (:cart) is supposed maintain the ''cart''
between calls, but when the display_cart stub view shows up, I have
always ZERO elements
2010 Nov 29
3
session active_record_store
Hi,
There doesn''t seem to be any previous posts about this problem, I must
be
setting things up wrongly at very basics...
Firstly, the problem... I can''t get session[] to persist with
active_record_store. I enabled (config.action_controller.session_store =
:active_record_store) in environment.rb and created the sessions table
at my MySQL database. When I do a session[:blah] =
2006 Nov 23
0
Cookie Implementation
Hi,
I am trying to remember certain information like username using cookies
so that when the same page is accessed again, some default settings can
be maitained.I am facing a problem when reading the cookie value.
The steps that I follow are:
1. Click a button in a view which will pass the control to a controller.
2. In the controller, the username which as passed as a parameter is
saved in a