From: Sean Chittenden Date: 2002-04-08T12:22:10+09:00 Subject: Re: Switching from PHP to Ruby - Comments Please > > > 3) Session management can be done as implicitly with or without > > > cookies as PHP4. > > > > Check out CGI.rb, it should have what you're looking for. -sc > > I did, but I am looking for a shorter answer. In PHP4, I can write > code that uses sessions, where the session ID is obtained from a > cookie or a GET/POST variable if cookies are turned off by the user. > In addition, if a user has cookies turned off, PHP4 will rewrite the > URL so the session ID is in the URL. Since I don't won't to require > cookies, this it a very nice feature to have. Does > session.rb/mod_ruby do this? That is, rewrite URLs when cookies are > turned off and collect session id's from either cookies or GET/POST > variables? I believe that cgi.rb does this, but I don't know for sure. Eventually I'll release ruby-session which will do exactly what you're talking about... I just haven't had time to finish it up (trying to get ties into rb_spread and DBI). -sc -- Sean Chittenden