search for: session

Displaying 20 results from an estimated 22807 matches for "session".

2012 Jan 12
1
Libguestfs gobject bindings
I'm currently working on gobject bindings for libguestfs. I haven't got as far as compiling anything yet, but I've attached the C header for initial review. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490 -------------- next part -------------- An embedded and
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
2017 Sep 26
3
Moderators for the 2017 LLVM Developers' Mtg Needed!
The 2017 LLVM Developers’ Meeting relies on volunteers to keep things running smoothly. Moderators are critical to this as they keep speakers on track and facilitate Q&A after the talk. I’m looking for community members who would be attending specific talks anyway, to volunteer to moderate the session. If you are interested in volunteering, please respond to this email with your first and second choice session times. You will moderate all talks during that time slot and they will occur back to back in the same room. Moderators introduce the speaker, give the speaker warnings about time, and fac...
2006 Apr 29
5
Getting Session ID
I thought I understood how to grab the session id but in the following code I am getting null for the session id: @foo = Foo.new(:session_id => session[:session_id], :test_id => @test.id) -- Posted via http://www.ruby-forum.com/.
2006 Jun 04
8
Remove item from session
Hi there, when i do this: session[:myItem] = ''foo'' session[:myItem] = nil the item :myItem is removed from the session. But this: session[''myItem''] = ''foo'' session[''myItem''] = nil doesn''t remove ''myItem'', it''s empty but s...
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their own model? In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/ action_controller/session/active_record_store.rb) it says you can override the default by setting CGI::Session::ActiveRecordStore.session_class = MySessionClass I have tried doing this in a number of wa...
2016 Oct 27
2
2016 LLVM Dev Mtg: Moderators needed!
All, I'm needing volunteers to help moderate the sessions of the LLVM Developers' Meeting. All you need to do is introduce the speaker, make sure the speaker stays on time, and run Q&A at the end (run a microphone, select people, etc). Its a pretty easy job, but critical for our meeting to run smoothly. Lightning talks are slightly different in t...
2006 Feb 28
19
Session magic question
Greetings! I could really use some help understanding what Rails puts into the session store related to the objects it creates. I''ve found documentation on how _I_ can put / get info into it, but can''t find the docs on what _Rails_ puts into it. I''ve got a simple app that collects some data from the user, stores it in a db record, allows the user to edit...
2006 Jun 08
7
Sessions
In the Agile WD book it states regarding sesion data- "Rails uses the cookie-based approach". This can''t be entirely true can it ? Not that I''m complaining if it was but isn''t there some equivalent to say, PHP sessions ? Or am I wrong. Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060608/5e7255b7/attachment.html
2011 Dec 02
12
puppet master under passenger locks up completely
I came in this morning to find all the servers all locked up solid: # passenger-status ----------- General information ----------- max = 20 count = 20 active = 20 inactive = 0 Waiting on global queue: 236 ----------- Domains ----------- /etc/puppet/rack: PID: 2720 Sessions: 1 Processed: 939 Uptime: 9h 22m 18s PID: 1615 Sessions: 1 Processed: 947 Uptime: 9h 23m 14s PID: 1596 Sessions: 1 Processed: 607 Uptime: 9h 23m 15s PID: 1722 Sessions: 1 Processed: 953 Uptime: 9h 23m 9s PID: 2218 Sessions: 1 Processed: 378 Uptime...
2005 Dec 25
5
understanding session fixation attacks
is there a way that, our application can understand wheteher the session id sent from the browser is forged or created by rails? I understand that if the attacker guesses session id, theres nothing we can do about it; but can we understand if he/she is trying to guess by creating random session ids. _______________________________________________ Rails mailing list Ra...
2006 May 12
5
how long before deleting sessions ?
What is the recommended amount of time to keep sessions around in the database (i store them in a sessions table). IF you get 1 million requests per day you are going to get 1 million new session entries in the DB. This would need some serious cleaning so just wondering what a safe cleanup time would be. Also does anyone know how to prevent new sess...
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the environments.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] = CGI::Session::ActiveRecordStore BUT the environments.rb file would have me Un-Comment this: config.action_controller.session_store = :active_record_store Anyway, I''ve tried both, and in both cases it generates new sessions all too quickly, so that no...
2006 Nov 08
1
controller.session not same as session?
...oller_name :account > > setup do > login_as :quentin > users(:quentin).remember_me > request.cookies["auth_token"] = cookie_for(:quentin) > end > > def logout > get :logout > end > > specify "should unset :user in session" do > logout > controller.session[:user].should_be_nil > end > > specify "should unset :user in controller.session" do > logout > controller.session[:user].should_be_nil > end > end > > The result: > > A user logging...
2006 Aug 07
8
Rails Recipes question - authenticating users
Didn''t think I''d be back so quick with another question but here goes: In this recipe for the signin or login (as I call it) there are these two lines if the user authenticates correctly: session[:user] = user.id redirect_to :action => session[:intended_action], :controller => session[:intended_controller] So I''m not seeing anything in the way of an explanation but reading the code it looks like there should be a session controller with a session action . Is that correct ?...
2007 Jul 18
3
Getting the session variables after a redirect_to
Hi! I set some session variables on a login_controller and i want to access them after a redirect_to (:controller => "auditor", action => "check"). The problem is that the session variable are comming empty in the auditor view!! I tough that session variables last trought all controllers...iam w...
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table.. so ive tried this: class ApplicationController.. session :off end class AccountController session :only, :login end and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just w...
2007 Aug 15
10
Objects in Session State Revisited
Hi Folks, I''m still a bit confused about the issue of storing "complex" objects in session state rather than storing simple objects. It''s my understanding that everything is an object in Ruby. If my understanding is correct, then storing a string or an integer in session means storing an object. It would seem then that the problem of storing objects in session is a matter of...
2006 May 18
4
How do you delete a session variable?
Hi Let''s say we set session[:foo] = ''bar''. Now we want to remove the :foo key completely. How do you do that? Appearantly, session is a CGI::Session [1] instance, so it doesn''t have #delete like Hash. I tried: session[:foo] = nil But then debug(session) shows an empty :foo key. I''d like...
2006 Feb 16
6
session usage
Clearly I have the session and can see that session[:user_id] = 7 Now I want to use the results of this...in a page...so I am trying to use the instance variable @sess_user and at the top of the application controller, I have either... @sess_user = User.find([:first, "id = ?", session[:user_id]) or @sess_user =...