similar to: Cookie question...

Displaying 20 results from an estimated 70000 matches similar to: "Cookie question..."

2006 Jul 08
0
Testing cookies - integration tests
Hello, I''m trying to test some cookie code with some integration tests, but I''m not sure if this is possible. Currently I''m creating a session (using open_session) running some code that sets my cookie and this works fine, the cookie is being set. Now cookies are supposed to exist across different sessions, so I try to create a new session (again with
2008 May 17
4
Setting cookies in service overloader thingo
I''m implementing a simpler version of the Cookie Session Store in Rails 2.0. If you know what that is, skip the next paragraph. A cookie session store stores the session data inside cookies, on the client, and signs them using a secret string, hashed together. The user can decode the cookie easily if they know much about computers and see what''s inside, but they
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
2007 Feb 05
2
adding a cookie
hi there, I''m not sure if it is better to use the ml or the forum so I ended to post on both ... I''m trying to login into a page that is using javascript to set a cookie: <script language="JavaScript"> {text "\n" " \n" " \n" " document.cookie = ''vhp_js=v995105608h85339294p;path=/;domain=.venere.com;expire=0'';
2007 Oct 04
1
Cookies in RSpec
So how do you work with cookies properly in rspec now? I noticed in the docs that it mentions session, assigns, and flash, but nothing of cookie. I''m using edge rails so I''m concerned about changes to the cookie mechanisms. I need to assign values into the cookie (a remember token for restful authentication) so that I can have it log in by cookie. here is my spec
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
2018 Dec 18
1
[PATCH] virtio-ccw: diag 500 may return a negative cookie
If something goes wrong in the kvm io bus handling, the virtio-ccw diagnose may return a negative error value in the cookie gpr. Document this. Signed-off-by: Cornelia Huck <cohuck at redhat.com> --- Even if the virtio spec is the correct place to specify what diag 500 subcode 3 does, we also should mention here that the cookie may be an error. ---
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 <
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
2023 Mar 04
1
[PATCH] docs: Prefer 'cookie' over 'handle'
On Sat, Mar 4, 2023 at 12:15?AM Eric Blake <eblake at redhat.com> wrote: > > In libnbd, we quickly learned that distinguishing between 'handle' > (verb for acting on an object) and 'handle' (noun describing which > object to act on) could get confusing; we solved it by renaming the > latter to 'cookie'. Copy that approach into the NBD spec, and make it
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
2005 Feb 07
1
[matz@ruby-lang.org: Re: Performance of CGI::Cookie / SimpleDelegator fix]
Matz claims 1.8.3 might be released in April. If we''re lucky, maybe it will have the Windows socket connection fix applied. (Although the patch has been hanging around since last June... but maybe they just needed some prodding. :) ) Then RubyTorrent will be much more usable on Windows. ----- Forwarded message from Yukihiro Matsumoto <matz@ruby-lang.org> ----- Date: Tue, 8 Feb
2019 Jul 30
0
Re: [PATCH libnbd] examples: Fix theoretical cookie race in example.
On Tue, Jul 30, 2019 at 11:51:40AM +0100, Richard W.M. Jones wrote: > Previously discussed here: > https://www.redhat.com/archives/libguestfs/2019-July/msg00213.html > > It turns out that deferring callbacks is a PITA. (It would be a bit > easier if C has closures.) However by rewriting the example we can > avoid the need to use the cookie at all and make it run a bit more
2019 Jul 30
0
Re: [PATCH libnbd] lib: Remove cookie parameter from completion callbacks.
On 7/30/19 10:36 AM, Richard W.M. Jones wrote: > As discussed in this thread, the parameter is an invitation to write > code with race conditions: > > https://www.redhat.com/archives/libguestfs/2019-July/thread.html#00309 > --- > +++ b/generator/generator > @@ -1729,7 +1729,7 @@ C<nbd_pread>."; > default_call with > args = [ BytesPersistOut
2019 Aug 05
1
[libnbd PATCH] lib: Always return cookie once command is queued
Although rare, it is possible that nbd_internal_run(cmd_issue) will report failure (perhaps because the server disconnected at the wrong time), even though we have queued the user's command. If we have a valid cookie, we MUST return it for the sake of users that will be calling nbd_aio_command_complete, as otherwise the user has no idea what cookie to wait on. Ignoring the state machine
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
2009 Dec 16
0
Cookie encoding problem
Gurus, I''m new to the rail stuff and didn''t find any answer to this on the net: 1. In RoR I set a cookie to a value like "/foo/bar" (containing slashes and other special chars) 2. In my bowser I see that the value is actually "%2Ffoo%2Fbar" (URL encoded) 3. This cookie will be received by an app which does not decode the URL encoded value Is there a way to
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
2019 Jul 30
3
[PATCH libnbd] lib: Remove cookie parameter from completion callbacks.
As discussed in this thread, the parameter is an invitation to write code with race conditions: https://www.redhat.com/archives/libguestfs/2019-July/thread.html#00309 --- docs/libnbd.pod | 6 +- examples/glib-main-loop.c | 10 ++-- examples/strict-structured-reads.c | 2 +- generator/generator | 57
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