CGI/Session expiration witch ruby-libs-1.8.6.369-1.fc11.i586

Hi every

i have a Web application making heavy use of CGI/Sessions. i could,
however, not specify an session expiration-date different from zero,
which makes the session expire, when the curren browser session is
terminated, i.e. when you close the browser.

the following patch to ruby-libs-1.8.6.369-1.fc11.i586 helped me along:

*** /usr/lib/ruby/1.8/cgi/session.rb 2009-08-07 09:46:57.000000000 +0200 *************** *** 278,283 **** --- 278,284 ---- session_id = @session_id = create_new_id retry end + if option["new_session"] request.instance_eval do @output_hidden = {session_key => session_id} unless option['no_hidden'] @output_cookies = [ *************** *** 295,300 **** --- 296,302 ---- end) ] unless option['no_cookies'] end + end @dbprot = [@dbman] ObjectSpace::define_finalizer(self, Session::callback(@dbprot)) end

with this patch, everything works as expected.

suomi