CGI::Session Problem

A

Adam Hurlburt

Hello,

I am creating my own random 16 digit session_id and am passing the id
through the cgi params to keep track of it. The problem is that the
session_id does not seem to be set.

The following is in a login.rb code where i initially create the
session:

where sid is some 16 char string

cgi = CGI.new("html4")

session = CGI::Session.new(cgi, 'new_session' => true, 'prefix' =>
'sid.', 'session_id' => sid)

session.close

the session is creating but with the ruby generated session_id! This is
driving me nuts the prefix is there but my session id is not being set
properly.

Any ideas???
 

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