search for: howtochangesessionoptions

Displaying 8 results from an estimated 8 matches for "howtochangesessionoptions".

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 Feb 25
2
A Couple of Questions
Hi All, I have been using Ruby and Rails for only a few short days and I am loving it so far. I have a couple of questions relating to a specific project I am working. 1. I am wondering about sessions expiring after a set period of in activity and what would be the easiest way to set it up. 2. I would like to be able to users on the system. Each of these users has a login of there own. Each
2006 Apr 27
4
Sessions Problems
Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
2006 Aug 27
6
Rails configuration for sessions
I''m trying to get the configuration done for sessions but I can''t seem to find any documentation on how to do it beyond the merest of basics. I would rather have something that would NOT persist a marshalled object to the database since that''s just not something I want to do. I want to be able to read the data for one. But there''s really nothing to
2006 Feb 01
1
Unwanted sessions after routing error
...omes in, for example <http://localhost:3000/not/a/chance/in/hell>, the RoutingError exception is raised then the session file is created. I see this behavior in both the development (WEBrick) and production (Apache) environments. After reading <http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionOptions>, I tried this as a workaround in environment.rb: ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:disabled => true) That didn''t help. It appears that this problem occurs after the render_* methods, while ActionController is building the response, so I''m n...
2006 Sep 06
1
Problem changing cookie expiration
I''m trying to set the cookie expiration in my environment.rb file but I keep getting a syntax error on WeBRICK startup. I''m trying both of the ways listed in http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionOptions. FYI I''m new to rails so this is probably easy. 1) ActionController::Base.session_options[:session_expires] = Time.local(2008,"jan")) or 2) config.action_controller.session :session_expires => Time.local(2008,"jan")) but either way I keep getting the following...
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
2006 Jan 03
22
Large-scale application
Hi fellow railers! We are discussing the possibility of writing a very large application in Rails. By "very large" I mean a framework that would contain a few hundred smaller applications that would need to talk to one big database and have to share some common session data I''d like to get some feedback on some possible ways of doing the following: The application would