[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

problems with session data and given session_id

Florian Weber

1/16/2005 6:25:00 PM

hi!

i'm trying to use a session via a existing session_id like:

CGI::Session.new(CGI.new, {"database_manager" => CGI::Session::PStore,
"prefix" => "ruby_sess.", "session_path" => "/", 'session_id' =>
my_session_id})

the session was created earlier (but via a cookie) already and has some
data.

the strange thing is that if i continue the session like above and
pass the existing session_id, the session doesn't have any data:

--- !ruby/object:CGI::Session
dbman: &id001 !ruby/object:CGI::Session::PStore
  p: !ruby/object:PStore
    abort: false
    filename: /tmp/ruby_sess.484ff15de1461381
    rdonly: false
    table:
    transaction: false
dbprot:
  - *id001
new_session: false
session_id: 9cae61297538d8ea4d415a9ee42f8f1f


any ideas what could go wrong here?

thanks a lot!

ciao!
florian






1 Answer

Yukihiro Matsumoto

1/17/2005 2:23:00 AM

0

Hi,

In message "Re: problems with session data and given session_id"
on Mon, 17 Jan 2005 03:25:00 +0900, Florian Weber <csshsh@structbench.com> writes:

|i'm trying to use a session via a existing session_id like:
|
|CGI::Session.new(CGI.new, {"database_manager" => CGI::Session::PStore,
|"prefix" => "ruby_sess.", "session_path" => "/", 'session_id' =>
|my_session_id})
|
|the session was created earlier (but via a cookie) already and has some
|data.

|any ideas what could go wrong here?

There are just too many possible problems. Show us the code to
reproduce your problem.

matz.