request.session_options broken?

I'm implementing simple "remember me" functionality for logging in
users with Rails 2.3.4. I'm trying to set the session expiration date
for some time in the future. After googling around a bit I found this
post which seems to address my problem:

http://squarewheel.pl/posts/3

My modifications to request.session_options are being ignored.
According to this discussion (
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f2e945a4b1ce3cf2/b2ba91b16a10fd0d?#b2ba91b16a10fd0d
) using request.session_options to modify your session cookie is
currently broken. Is that correct?

Thanks!
James

I am also looking for a solution to this problem. It took me long
enough to figure out how to set the cookie domain going from Rails
2.2.2 to 2.3.4, now my cookies appear to expire daily instead of
never :frowning:

If you want all of the session info for your app to persist you can
set the expiration in config/initializers/session_store.rb

ActionController::Base.session = {
  :key => '_blog_session',
  :domain => '.example.com',
  :expire_after => 1.week # put whetever expiration you want here
}

My issue is that I only want to set the expiration to something longer
when the user explicitly asks me to.