<div>On Fri, Jun 6, 2008 at 6:07 AM, Magnus Holm &lt;<a href="mailto:judofyr@gmail.com">judofyr@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
It looks like everyone has tried to fix the cookies lately, and no-one managed<br>to get it 100% correctly...<br></blockquote></div><div><br></div>Thanks for the code, that seems to work really well and prettily. I admit that, though I love writing apps in it, I am very new to hacking on the dark underbelly of Camping. (Me, I just wanted to get sessions to work in the Junebug wiki for a Ruby class I&#39;m teaching some friends.)<div>
<br></div><div>Your new patch makes sense to me.&nbsp;I&#39;d be interested to hear a discussion of why the Bluebie version didn&#39;t work, because I thought that made sense too. :)</div><div><br></div><div>I do like Jenna&#39;s streamlining of the session handling stuff:&nbsp;<a href="http://github.com/Bluebie/camping/commit/8ef1e532453fd378b003f967c034c78f64dbc802">http://github.com/Bluebie/camping/commit/8ef1e532453fd378b003f967c034c78f64dbc802</a></div>
<div>I tend to agree that for most Camping apps it&#39;s probably okay to keep the cookie session around for the whole browser session, and that trying to prevent session hijacking with IP addresses/UA strings is going to be annoying for a fair amount of people.</div>
<div><br></div><div>On the other hand, removing the timeout and remote address stuff does make it stupidly easy to steal a session, since all the session data is sent in essentially cleartext with every request. (This is of course only very slightly worse than, say, a username/password being sent in cleartext once during a login.) Tricky tricky!</div>
<div><br></div><div>Myself, I&#39;d prefer to keep Camping sessions super-simple, and just make sure that the limitations are documented and the necessity of something like OpenID or SSL is emphasized if you need really real security.</div>
<div><div><br></div><div>Like this:</div><div><a href="http://rubyforge.org/pipermail/camping-list/2008-May/000712.html">http://rubyforge.org/pipermail/camping-list/2008-May/000712.html</a><br></div><div>and also this:</div>
<div><a href="http://rubyforge.org/pipermail/camping-list/2008-May/000722.html">http://rubyforge.org/pipermail/camping-list/2008-May/000722.html</a></div></div><div><br></div><div>devin (&#39;qwzybug&#39;)<br><div><br></div>
</div>