similar to: session list

Displaying 20 results from an estimated 200000 matches similar to: "session list"

2007 Mar 19
4
Active session list
Hi all Does anybody know how to get active session list or list of active session ID in RubyOnRails? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2007 Jun 28
2
Can't actualize variable session
Hi, I have a variable session, session[:old_controller] that I m using to make some fancy effect on my menu. However since recetly, I have no idea but this variable refuse to be actualized... I am doing a <% session[:old_controller]=@controller.controller_name %> but at the next request, if I check the value of session[:old_controller] it didn''t change... I have no idea why,
2009 Mar 12
3
Session Expiry
Helllo there, Can any one help me on this "Session Expiry" I just want to make the session expire when the system goes idle how do i do it yours , Narayanan.cj. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2008 Jul 09
3
CookieOverflow - 4k Session?
Hello all, I get the following error when I stuff my seesion with more than 4k of data. CGI::Session::CookieStore::CookieOverflow My problem is that I obviously need a fatter session. How do other users by-pass the 4k restriction on session variables? Regards, John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 May 06
3
Using session-type data in an ActiveRecord callback...
Any suggestions on how best to gain access to session-type information while in an ActiveRecord callback, such as after_save? I am encrypting some information in the database, using the generalized encryption/decryption handler in "Agile Web Development With Rails" (p 375ff). I got it working, and now I want to reference a session field (a user PIN) which is NOT stored in the
2007 Apr 13
2
Can't access session from helper?!
Hi, I''m receiving this pretty standard error message: undefined local variable or method `session'' for ApplicantHelper::Filter:Class All my searches have returned results where the developer is trying to access the session from the model. In this case, it''s just a helper class. Do I have to inherit from ActionController::Base and therefore make the helper a
2006 Oct 29
1
ActiveRecordStore: Where is the session id generated?
Where can I find the algorithm that generates the session ids for the ActiveRecordStore (sql session)? Thanks, Shimon Amit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2009 Oct 13
1
config.action_controller.session[:secret] vs protect_from_forgery :secret
What I want to do is share the same session across many Rails applications. All of them are using Rails 2.2.2. I know that, to share the session, it''s (supposedly) just a matter of sharing the same key and secret among the apps, like this: config.action_controller.session = { :session_key => ''_apps_session'', :secret =>
2007 Dec 30
1
restful_authentication plugin + session timeout + single login session?
Hi, I am using restful authentication plugin 1) I was wondering if there is a way to do a session timeout using the restful_authentication. How do I hack it to get the behaviour I need? 2) On top of that, I may need to ensure that a particular user can only login from a single PC. If the user is already logged in at a PC and attempts to login from another PC, the session in which he signs in
2007 Feb 27
1
Trying to retrieve a model from the session that uses acts_as_attachment - segmentation fault in mongrel
I am using acts_as_attachement on my Photo model to upload a photo. I have a wizard-like set of pages that the user can step through. Rather than save the photo to the db/filesystem I want to save it to the session until the user hits save. Saving to the session appears to work fine, however, when I try to retrieve anything from the session afterwards, I get:
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
2007 Mar 25
3
Session is nil inside model
I''m tring to write a little function to indicate if a user is able to pay an invoice, I have my invoice model with: def canPay? if session[:user].id == self.consumer_id return true; else return false; end end as a method, but it gives the error: "undefined local variable or method `session'' for #<Invoice: 0xb7670928>" Right before
2008 Jun 14
1
Active Record session store breaks file uploads
Hi all, I recently switched from the default session store to :active_record_store, and my file uploading (using attachment_fu) has broken. When I select a file to upload, using a standard form, and click submit, I am shown an error page: Status: 500 Internal Server Error can''t dump File In the log this shows up as "TypeError(can''t dump File)". The stack trace
2007 Apr 16
4
Web Flow and the session method in ActionController
Hi there, I''m writing a port of Spring Webflow to Ruby on rails and I''ve encountered quite a lot of difficulty finding how to override the session[] method which is accessed via any ActionController. I have my pseudo-code ready to implement, but I can''t find the method declaration to copy it''s signature. Also, if anyone wants to collaborate on this particular
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
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to active record sessions. I''ve created the sessions table via the rake task, uncommented the line config.action_controller.session_store = :active_record_store in my environment.rb file, cleared out my browsers cookies, restarted the server (natch), but still the it''s using cookie_store instead of
2007 Nov 16
1
drag & drop list needs refreshing
Hello guys, I''m a scriptaculous newbie (I started working with it only yesterday) and I have already the first problem. I''m trying to implement a drag & drop list (fallowing the shopping cart example http://demo.script.aculo.us/shop) and I''m almost done but after dropping an item on the target div I need to refresh the page to see that the item has been moved.
2008 Jan 04
3
session auth and AWS auth
Hello I have 2 applications (1 normal, 1 Beast Forum) that set the session domain to be the same so that they can share information between them (they use the same database). However, i am not 100% clear on how I can expose the controller methods to each of them through normal HTTP Auth, and keep the normal acts_as_authenticated pieces in place at the same time? Is there a way to distinguish
2007 Feb 21
1
setting session data from a post
I''m using acts_as_authenticated, and I''m trying to run some tests where the user must be registered. In the past, I''ve just included a user id in the session data. def test_login_loads_from_post_session post :new, nil, { :user => 7 } session = assigns(:session) assert_equal 7, session[:user] end My assert statement seems to be failing because my session is
2007 Oct 17
9
@session['user'] vs session[:user]
This might seem really simple to some but just wanted to ask: what is the difference between @session[''user''] and session[:user] ? and how would you use each? And another question, I have the following code: def get_customer if @session[''customer''] @c = Customer.find(@session[''customer'']) end end private def