Displaying 20 results from an estimated 30000 matches similar to: "session cookie missing"
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
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
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 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
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
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 Nov 24
0
Maybe a bug in Cookie:cookies
Hi man,
Thank you very much for your good work.
I think there may be a bug in Mechanize 0.6.3. Cookie:cookies (cookie.rb:L83
)
@jar[domain].each_key do |name|
=> if url.path =~ /^#{@jar[domain][name].path}/
if @jar[domain][name].expires.nil?
cookies << @jar[domain][name]
elsif Time.now <
2012 Sep 19
1
scraping with session cookies
Hi, I am starting coding in r and one of the things that i want to do is to
scrape some data from the web.
The problem that I am having is that I cannot get passed the disclaimer
page (which produces a session cookie). I have been able to collect some
ideas and combine them in the code below but I dont get passed the
disclaimer page.
I am trying to agree the disclaimer with the postForm and write
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
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
2012 Apr 25
8
showing error (gsub) when switching from session to cookies
I am newbie to rail. Trying to develop social networking site so working
with railspace application. Everything is working fine but I stuck in
the problem when i am giving the authorization tocken to the user to
remember him/her.
My Error and controller code is below
Error:-
private method `gsub'' called for 4:Fixnum
C:/Users/Amir/Downloads/IR/ruby/lib/ruby/1.8/cgi.rb:342:in
2010 May 28
1
cookie has key/value pairs and lost order after JSON decode
If a cookie has several items, and is encoded as JSON text as the value
of the cookie, the order is actually apparent in the cookie''s text
But if JSON.decode is used:
ActiveSupport::JSON.decode(cookies[''item_list''])
and the result is actually in a hash, then the ordering is lost...
Is it true that if the original JSON object has an array of hashes (1
key and 1
2006 May 11
3
Setting cookie value in test
In the initial version of my application I am just going to require
cookies - down the road _considering_ changing that and providing
something that works without.
Anyway, this is somewhat of a two part question
1. Does this approach make sense or is there a better way typically used?
Just have a before_filter in my application.rb to verify that the
:_session_id cookie is present. If it
2006 Jun 26
0
options_for_select-how to store cookie selected value ques.
#Controller
cookies[:state] = state
if state != nil and state.to_i != -1
conditions << ''stateid = ?''
cond_args << state
cookies[:state] = state
end
if !cookies[:state].blank?
@default_state = cookies[:state]
else
@default_state = ""
end
# view - html
2006 Mar 07
0
Re: Hash in a Cookie?
Actually, the first case here doesn''t work at all. I get
cookies[:cities] = [] # a blank array?
So, it looks like the cookies methods don''t allow Hashes...
On 3/7/06, Josh on Rails <rails@thewehners.net> wrote:
>
> In the second case (cities), this DOES work:
>
> cookies[:cities] = @params[:cities]
>
> BUT, creates a this-session-only cookie. Trying
2006 Mar 30
0
Making the session cookie persistent
Searching gmane, I''ve found many discussions on the subject, but never a
definitive answer. How can I make the session cookie (i.e., the cookie where
rails keeps the session ID) persistent?
-- Pazu
2019 Jul 30
0
[PATCH libnbd] examples: Fix theoretical cookie race in example.
There was a theoretic race in this example: If the server was very
fast at handling commands then it's possible that in a call such as:
cookie = nbd_aio_pread_callback (..., callback, ...);
buffers[i].cookie = cookie;
nbd_aio_pread_callback finished and calls the callback before
returning. buffers[i].cookie would therefore not be set, but the
callback() function was checking the list of
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
2020 Jul 20
1
Re: [PATCH nbdkit v2] curl: Implement header and cookie scripts.
On 7/15/20 3:53 PM, Richard W.M. Jones wrote:
> This rather complex feature solves a problem for certain web services
> that require a cookie or token for access, especially one which must
> be periodically renewed.
>
> For motivation for this feature see the included documentation, and
> item (1)(b) here:
>
>
2008 Jun 24
1
cross domain cookie
My rails server runs on localhost. I want to set a cookie for the
domain ".myapp.com". How do I do this?
(i tried cookies[''xyz] = {:value => ''abc'' ,:domain => ''.myapp.com''} .
It doesnt work. No cookie is being set when i specify domain like
that.
thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this