Session cookies not passed on first redirect
Julian 'Julik' Tarkhanov
julian.tarkhanov at gmail.com
Tue Sep 25 18:19:05 EDT 2007
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: #{@state.inspect}"
redirect R(Three)
end
end
end
end
That's a bummer.
--
Julian 'Julik' Tarkhanov
please send all personal mail to me at julik.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/camping-list/attachments/20070926/b2dcf37d/attachment.html
More information about the Camping-list
mailing list