problems with session data and given session_id

F

Florian Weber

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
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: problems with session data and given session_id"

|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.
 

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,820
Latest member
GilbertoA5

Latest Threads

Top