Forum: Ruby CGI::Session Problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9397b7fcfdce4869a017107edf0e88c1?d=identicon&s=25 Adam Hurlburt (dark_helmut)
on 2008-11-11 03:55
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???
This topic is locked and can not be replied to.