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

R

Ruby Ruby

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:


<patch>
*** /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
</patch>

with this patch, everything works as expected.

suomi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top