From: Ariff Abdullah Date: 2005-02-26T00:11:54+09:00 Subject: Re: cgi sessions not working :S On Fri, 25 Feb 2005 23:02:05 +0900 Javier Valencia wrote: > I have a eruby page, which makes a new session just for fun. The > code is: > > cgi = CGI.new("html4") > session = CGI::Session.new(cgi, 'new_session' => true, 'prefix' => > 'rubyweb') > session['username'] = "rambo" > session.close > > Then the header have a meta redirection to a simple script that > creates a session from an existing one: > > cgi = CGI.new("html4") > session = CGI::Session.new(cgi, "new_session" => false, "prefix" => > "rubyweb") > > The problem is that my last session is NIL, so it's not working. > I have coockies enabled in my browser (firefox). > What's happening? > Thanks. > How about this: cgi = CGI.new("html4") ERuby.cgi = cgi session = .... .... -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)