Displaying 20 results from an estimated 6000 matches similar to: "Server-side session management for short session expirations?"
2006 Mar 05
2
Need help understanding Rails magic!
Hi,
I''ve just been pleasantly surprised, again, by how much Rails does for me, but I am *really* surprised. Surprised as in "how the heck did that happen?" I''d really like to understand this and would appreciate any help.
Big picture... the user is presented with a form that allows them to select one or more check boxes to record their allergies. The form uses the
2006 Oct 17
6
Session access interfers with other model access
Sorry to be such a bother but I''m not getting this.
I have two models: Emrec and Session (I''m using AR for session mgmt.) In my
worker I can access the Emrec model and delete a record, AS LONG AS I don''t
try to access the Session model. With the Session model access commented
out as below, the Emrec record gets deleted. If I uncomment those lines,
the Emrec
2007 Feb 20
1
error message for record not found ?
I''m using backgroundrb for session management and deletion of visitor-entered information when a session is abandoned. The visitor can either click a button to end their session and remove their data, or backgroundrb will do it for them after 5 minutes of inactivity.
Everything''s working fine, I think. If the visitor explicitly logs out, then when the worker checks for their
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
Greetings!
I''m trying to update a set of records from the same model on one form. The AWD book gives an example on p.356 but I guess I''m not understanding it.
I can see from the error message I''m getting that the controller is receiving a hash of hashes back from the view, and that it''s got the stuff I expected (two values per record that was sent to the
2006 May 10
2
trouble creating new records
Is it possible to create / save a new record from a controller other than the one I specified when I created the scaffolding?
My situation is that I have two tables. Emrecs is the parent. Actors is the child and has a foreign key named emrec_id that references emrec.id. I scaffolded both, creating controllers and views for each. My app collects info from the user to fill in the two tables,
2006 Oct 17
2
accessing args in worker
If, in the controller, I start a worker and pass in an argument like this:
session[:job_key] = MiddleMan.new_worker(:class => :foo_worker,
:args => {:emrec_id => @emrec.id})
How do I access the value in the worker? I can''t seem to figure it out ;-p
Thanks!
Bill
-------------- next part --------------
An HTML attachment was
2006 Jun 09
8
[how can i delete a file system..please help]
Hi,
I''m trying to delete a file system (<xml_26548975.xml>)
File.delete("xml_26548975.xml")
But I get this error:
"Permission denied - ./script/../config/../uploads/xml_26548975.xml".
Why?
--
Cheers,
ioana k&a
http://boulangerie.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Mar 11
2
assignment of parent ID in child''s fk field
When I create a child record I''m not automagically getting the parent ID put into the fk field. Does object.new take parameters that allows me to do that as part of the AR record creation? Or do I need to do it separately? Or am I missing the boat altogether ;-)
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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 it, display
2006 Oct 16
6
accessing session data in worker
Is there something special I need to do to access session data in a worker?
I''m using an AR session store. I''ve been working with Ezra''s tutorial, modifying it a little here and there to figure it out. So I changed the progress bar to a simple count-down in the worker which sends back the count to display in the view. No big deal. But if I try to access session
2006 Feb 09
1
session cookie expiration
from the Agile Book, i see i can set the absolute session expiry time via:
ActionController::CGIRequest::DEFAULT_SESSION_OPTIONS[:session_expires]
however, I don''t see anything about what the actual default setting is when
a session is created.
also, is there a way to set the expiration to happen when the browser is
closed?
in PHP, this can be accomplished using
2007 Jul 11
1
Session Expiration Problem: How to keep a user logged in for
How do I keep the Rails session from expiring when the browser exits? I
would ideally like the user to be logged for a few days (e.g. 2 weeks).
Do I use the Rails "session" or "cookies"? Also, my understanding is
that session[:session_expires] doesn''t work.
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
2006 Jul 26
7
syntax for specifying :html fallback on form_remote_tag
Has anyone gotten the :html option for specifying a ''fallback'' action if javascript''s not enabled working on form_remote_tag (or remote_form_for)? I can''t figure out how to specify the action that''s supposed to be invoked if js _is_ enabled.
Or maybe I''m just misunderstanding how this thing is supposed to work. I was assuming
2006 Mar 17
1
graceful session expiry?
According to the Rails book, the session object has an attribute called
:session_expires, but they don''t encourage its use. Currently I handle
session expiry by using a cron job to delete session files that have not
been modified in the last X minutes (it is a design/security requirement
for this project that sessions expire after a finite period of
inactivity).
However, this is a
2001 Jun 03
3
Handling of password & account expirations
Hello,
There has been an annoyance with OpenSSH that has been bugging me
lately. It pays no attention to pw_change and pw_expire fields from the
passwd file for users by default. Thus even if the admin has set a
user's account to expire 5 days ago they can still login. So one might
say, just add 'UseLogin yes' and all of your problems will be solved.
This of course is not a good
2006 May 17
0
session_options/session
How do I display, in breakpointer for example, session.session_key or
session.session_expires ??
The only one that works is session.session_id for some reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060517/d99e0837/attachment-0001.html
2005 Apr 24
0
[Bug 1002] sshd does not report failed PAM session modules to the client side
http://bugzilla.mindrot.org/show_bug.cgi?id=1002
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From dtucker at zip.com.au 2005-04-24
2006 Jun 19
0
FileUtils/ActiveRecord help please?
Does anybody know how to make FileUtils and ActiveRecord coexist? Every
attempt I have made results in errors like those quoted below.
[belladonna-grr] ~ <0> irb
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''fileutils''
=> true
irb(main):003:0> include FileUtils
=> Object
irb(main):004:0> require_gem
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
Hello,
I did a seemingly smooth install of ferret, but when I try to add it to
my model, I get an error.
My info:
My rails site: shelikes (a restaurant review site)
My controller: Display
My model: Review
My only line of code added for ferret is:
class Review < ActiveRecord::Base
acts_as_ferret
...( more stuff not related )...
end
Below is the error information. Any thoughts on how
2009 Sep 15
1
Strange error no idea -fileutils.rbThumbs.db (Errno::EACCES)
I can not find a single post on this but trying to start mongrel_rails
after closing it down I get the strangest error I have ever seen.
Nothing on Google anywhere at all - please can somebody give some
expertise?
D:\2_Rails_WWW\rails_apps\footballstars>mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...