Displaying 20 results from an estimated 10000 matches similar to: "Session Expiration Problem: How to keep a user logged in for"
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
2005 Dec 15
2
:session_expires usage
Hi everyone, I''m new to Rails and web development. I just bought up the
Agile book and I''ve got a question about the :session_expires option.
In the book, page 317, it says the :session_expires "option should
probably not be used." Does anyone know why? The book doesn''t explain
or give any indication as to why.
In an application I''m working on
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
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"))
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
2006 May 31
4
acts_as_attachment , someone using it?
Hi, i just found the acts_as_attachment plugin for image upload, seems
sogood but i cant find any docs about it, if someone here using it can
give some references or working examples about the plugin that will be
excellent.
So what you wanna rails today?
--
Posted via http://www.ruby-forum.com/.
2007 Aug 16
3
Sessions on Rails with Pound and Mongrel
Hi All,
I''m experiencing a problem when using pound with Rails. My set up is I
have a machine acting as a load balancer running Pound. This listens
on port 80 and directs requests with a particular URL to two backend
servers both of which are serving my rails app using mongrel cluster
on ports 9000,9001 and 9002. There is a problem with sessions even
though I am storing the session data
2007 Nov 02
1
uninitialized constant ActAsAuthenticated
Hi,
I followed the installation guide on http://technoweenie.stikipad.com/plugins/show/Acts+as+Authenticated,
but db:migrate fails:
$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant ActAsAuthenticated
Tried to move include AuthenticatedSystem to ApplicationController,
2006 Apr 28
3
persistent cookies
hello,
I am trying to implement 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
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from
http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine
as this site is down and script/plugin discover is broken as it fails
when trying to add plugin repositories giving the message as below;
Add http://svn.northpub.com/plugins/? [Y/n] y
(eval):3:in `each'': undefined method `[]'' for
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
2006 Sep 09
2
Server-side session management for short session expirations?
I need to effectively log a user out if their session is inactive for more than a short period of time, like 5 minutes. I need some help understanding how to approach session expiration and cleanup in Rails.
When the user explicitly logs out of my app, I delete all the data they''ve entered/that''s been created during their session. The data includes files, database records, and
2006 Mar 15
3
[login_generator] implementing login limits
I have a simple Rails app that I am close to deploying on
our intranet. The security model is "either you are an admin
or your are not," with the method of implementing this model
being done by the login_generator 1.1.0.
There is one account set up, ''admin'', with three of us
having the ability to logon with this username (i.e. we
know the password). I am looking to
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
2011 Feb 22
2
Problem installing restfull authentication
hi
trying to use restfull authentication, but getting the folloing error
script/plugin install
http://github.com/technoweenie/restful-authentication.gitrestful_authentication
Plugin not found: ["
http://github.com/technoweenie/restful-authentication.git",
"restful_authentication"]
can someone help please
thanks
--
You received this message because you are subscribed to
2006 Jun 02
2
State of the Art in Login?
Hi folks,
I''ve got an older project I''ve used LoginGenerator for. It works pretty
well, but lacks password resetting, etc.
Now I''ve got a new project for a client that''s going to need login
capabilities as well. I''ve been looking at the Salted Login Generator
and the Login Engine, and have taken quick stabs at running through the
installation
2006 Mar 29
8
Action Mailer
Does anyone know where I can download an demo app of action mailer. I''ve
looked every where. I''ve also done the tuts. but, they don''t work for
me. Thanks...
--
Posted via http://www.ruby-forum.com/.
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed. I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1. ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2. ActionController::Base.session_options[:key] = ".localhost"
Does anyone
2006 Feb 08
8
Liquid with database?
Hello,
Just wondering if someone here as successfully ported Liquid to use with a database. I would like to try it out but not sure how Liquid integrates with current templates.
Thanks
Frank
---------------------------------
Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 May 08
3
user and password verification (login form)
hello
I have created a registration form, from where the user is asked to fill
the userid and password and is stored in the database
now i want to create a login page which will take the user and password
and then verify with the database and if true then page 1 will open if
false page 2 will open.
can ne one tell me the code for it
thanks..
--
Posted via http://www.ruby-forum.com/.