On Sep 25, 2007, at 11:57 PM, Julian 'Julik' Tarkhanov wrote:
Thx. Checked that. No the issue isn't fixed. I suspect something is
wrong with the cookie code, not with the session code (setting the
cookie manually works after all).
Ok, with the trunk Camping it gets even more interesting! I loose the
session on _all_ redirects now.
Camping.goes :Findme
require 'camping/session'
module Findme
include Camping::Session
module Controllers
class One < R('/stepone')
def get
@state = {"one" => 2}
puts "1:" + @state.inspect
redirect R(Two)
end
end
class Two < R('/steptwo')
def get
@state.two = "This is in two"
puts "2:" + @state.inspect
redirect R(Three)
end
end
class Three < R('/stepthree')
def get
@state.three = "This is in three"
puts "3:" + @state.inspect
return "Accumulated state across redirects: [EMAIL PROTECTED]"
redirect R(Three)
end
end
end
end
That's a bummer.
--
Julian 'Julik' Tarkhanov
please send all personal mail to [EMAIL PROTECTED]
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list