Displaying 20 results from an estimated 57 matches for "_session_id".
Did you mean:
session_id
2007 Apr 30
2
Serving static files with Merb
...put a
"sleep 1" in the controller and the messing up stops. Of course, that
isn''t a real solution.
----
Another little problem (maybe), the Set-Cookie header is
''interesting'' and appears to be getting longer and longer.
"Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/;
expires=Mon, 14 May 2007 15:00:12 -0400
_session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14
May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb;
path=/; expires=Mon, 14 May 2007 15:00:57 -0400
_session_id=Gj2UTej...
2006 Apr 28
3
persistent cookies
...nt 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
session[:session_expires] = 1.year.from_now
and
cookies[:_session_id] = { :value => session.session_id, :expires =>
Time.now+31536000, :domain => ".domain.com" }
I get the following in the log, but viewing the cookie in firefox doesnt
r...
2006 May 11
3
Setting cookie value in test
...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 isn''t: kick them out to some
page that gives them the "you need cookies" message. If it''s there:
good, go ahead with whatever their request was.
2. Given that I am going to use the approach above: my functional
tests will need to add the :_ses...
2007 Jan 18
5
Session IDs and SWFUpload
Hi
I''m using SWFUpload in one of my applications, but it has one big
shortcoming: it doesn''t maintain the session. Let me explain:
The user has to login to the application, thus creating an
authenticated session (cookie _session_id client side and the
sessions table server side). However, when you use SWFUpload, the
upload script is called with a new session (unauthenticated), making
the app assume the new session has no access and redirects it to the
login page.
Currently, I''ve just exposed the upload metho...
2006 Dec 27
3
ARSession Woes!
I''m having an issue with ARsessions... I have a rails app AND a merb app
both under the same domain... I have redirects working for this to be
seamless... however, the session started on merb is different than the
session started in the rails app... like so..
http://pastie.caboo.se/private/r1ar42qiaekrqjdt6y
Any ideas why?
The only difference I see, but dunno where to change this, is
2006 May 04
0
Passing _session_id with multipart forms
...the server. Unfortunately, there is
a bug that prevents Firefox cookies from being sent along with the
request, so a different Session is created. I''m having my Flash code use
ExternalInterface to call a Javascript function on the page with the
Flash movie. The JS function returns the _session_id from the user''s
cookie, which Flash then uses to append to the request it sends to the
server when uploading a file (as described at
http://weblog.rubyonrails.org/articles/2006/04/19/stress-testing-your-protected-pages).
However, it seems that in certain situations (mine being one of t...
2006 Jan 14
2
Why can''t I changed the _session_id cookie?
Hi,
I noticed that there is a cookie set by my rails scaffold that contains
a 32 character hash code in it, but when I tried to change its value
using Cookies[:_session_id], nothing happened, it stays the same!
How am I supposed to change the session_id?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 16
9
''depot'' app, where''s session?
Many of you probably know the ''depot'' app from the ''Agile Rails
development'' book.
I have constructed the ''products'' model, the Store-controller, and the
''Cart'' and ''Line Item'' classes. I have told Application-controller about
:cart and :line_item:
model :cart
model :line_item
Here''s part of
2006 Oct 16
0
user engine session id re-generating on post
I get a redirect from user_engine when using
curl -i -X POST -d "<xml_data></xml_data>"
http://<webpage>?_session_id=ABC
If I use
curl http://<webpage>?_session_id=ABC
the GET works fine.If it was a routing issue, I would
expect the GET not to work.I also removed the -i, but no difference.
I''m using
if request.post?
---
end
if request.get?
---
end
in the controller, request.get? works fine, so...
2008 Feb 09
1
how to check the config.action_controller.session options ?
when setting it in my environment.rb
config.action_controller.session = {
:session_key => ''_myapp_session'',
:secret => ''3a64394bb895f1f05e0c07f71127d93d''
}
I cannot get it back in the script/console ..
:session_key=>"_session_id" !!!
why ?
>> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS
=> {:session_key=>"_session_id", :cookie_only=>true, :session_path=>"/",
:prefix=>"ruby_sess.", :database_manager=>CGI::Session::CookieStore,
:tmpdir=>"/Users/myse...
2006 Jun 20
3
Maintaining same session for a user across different PCs
Hi,
I''m trying to make a simple shopping cart, where I want to maintain
state when a use logs in from different location. Consider the
following :
1. ''foo'' logs in from home pc and add ''bar'' item to the cart.
2. ''foo'' goes to office and logs in from office PC.
3. Now I want only one session for ''foo'', so that when
2007 Jan 12
3
Content-Length: 0
...clue, but thought
I''d ask here if for some reason this is expected behavior. Both
running Ruby 1.8.4. Both return identical HTML when asked.
Thanks.
Local machine...
$ curl -I http://macbookpro:3000/
HTTP/1.1 200 OK
Connection: close
Date: Fri, 12 Jan 2007 21:00:46 GMT
Set-Cookie: _session_id=2b9dd56af3a66538082088ad31ee085a; path=/
Status: 200 OK
Cache-Control: no-cache
Server: Mongrel 1.0
Content-Type: text/html; charset=utf-8
Content-Length: 4160
Server...
$ curl -I 127.0.0.1:8260
HTTP/1.1 200 OK
Connection: close
Date: Fri, 12 Jan 2007 20:52:08 GMT
Set-Cookie: _session_id=5afad9b...
2006 Dec 01
2
ActiveRecord Sessions
...r like to
access my active_record_session from my Rails app. Is this built into
merb yet?
Or is it OK to just add require ''action_controller/session/
active_record_store'' to merb_init.rb and then create my own session
object (CGI::Session::ActiveRecordStore::Session.find_by_session_id
(cookies[''_session_id'']))?
Thanks a lot.
Erik
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks,
There''s a nasty little bug in 0.3.13.3 when running in development mode
which could cause all sorts of problems.
Please grab the pre-release of 0.3.13.4 and tell me if it works for you:
gem install mongrel --source=http://mongrel.rubyforge.org/releases/
Thanks!
--
Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
http://www.railsmachine.com/ -- Need
2007 Jan 26
0
Problems with assert_select in integration tests
...v_table={"CONTENT_LENGTH"=>nil, "HTTP_HOST"=>"www.example.com",
"REMOTE_ADDR"=>"127.0.0.1",
"CONTENT_TYPE"=>"application/x-www-form-urlencoded", "HTTPS"=>"off",
"HTTP_COOKIE"=>"_session_id=d0060c4ee33f3d58c0ef83bbfa107b6f; ",
"REQUEST_URI"=>"/account/new_account_step_two", "SERVER_PORT"=>"80",
"QUERY_STRING"=>nil,
"HTTP_ACCEPT"=>"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;...
2006 Apr 18
1
''depot''app, trouble with session / cookies
...''find_cart'' call. At the first #1# breakpoint,
the session was in fact nil.
When I set <%=session.session_id%> in the views, it is always exactly
the same in the ''store'' view, (but changes every time in the
''display_cart'' view).
And the _session_id COOKIE never appears in Firefox cookie-list.
>From this, it seems the server (WEBrick) doesn''t send the session
cookie to the browser.
(New msg:)
Yeah, now I use ''Live HTTP Headers,'' and it shows that WEBrick never
sends the cookie to Firefox from my application.
All...
2006 Feb 07
0
Re: odd http header corruption
...;#<(C|c)lass: 0x[\w\d]*>:0x[\w\d]*>/)
output.write(headers)
testing that my regex really did match the offending string.
However, this addition did not remove the offending string, and writing
the headers out into the body of the response gave me this
Content-Type: text/html
Set-Cookie: _session_id=936ba003910da551a472708d4b7b3ff3; path=/
Status: 200 OK
Cache-Control: no-cache
<html>
<head>
suggesting to me that the problem was being introduced at a different
stage ... However, superficially I cannot work out how this set of
headers is actually transformed into the headers we se...
2006 May 27
5
Rails without cookies
Why does rails keep installing cookies on users machines, even if I am
not ussing th session variable for anything?
How do I stop this?
Thanks, Scott
--
Easily help charity when you shop: www.GiveTeam.org
I''m a member of the Give Team, are you?
2006 May 05
5
Sessid.
How can I get the sessid from the current session object?
For instance, I log in the system, and want to know which sessid I''m using.
I''m storing the session using active_record. Later on, I want to restore
a session finding it using the sessid.
Thanks in advance.
Fernando Lujan
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