<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Storing page-state in the session is evil / Spammer for a day</title>
	<atom:link href="http://madbean.com/2005/page-state/feed/" rel="self" type="application/rss+xml" />
	<link>http://madbean.com/2005/page-state/</link>
	<description>Your zero step program</description>
	<pubDate>Sat, 22 Nov 2008 04:47:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: john</title>
		<link>http://madbean.com/2005/page-state/#comment-365</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 20 Jul 2005 14:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-365</guid>
		<description>&lt;p&gt;Graham, no one claims that it's a limitation of server-side state, but it's clearly a bug in the way server-side state in concert with client side state (i.e., a cookie) was used in the webapp in question.  &lt;/p&gt;

&lt;p&gt;In response to "I think itâ€™s more important that the user is aware og how their browser will work," users will most definitely NOT be aware of how their browsers will work.  That's why webapps need to be written to work properly (or bomb out and tell the user why) regardless of what weird acts the user performs.  Your comment about how it wasn't really a problem that some user was running into trouble when he Ctrl-N'ed for a new window "because people normally wouldnâ€™t use the app the way he was" is really troubling (or at least it should be troubling to your clients).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Graham, no one claims that it&#8217;s a limitation of server-side state, but it&#8217;s clearly a bug in the way server-side state in concert with client side state (i.e., a cookie) was used in the webapp in question.  </p>
<p>In response to &#8220;I think itâ€™s more important that the user is aware og how their browser will work,&#8221; users will most definitely NOT be aware of how their browsers will work.  That&#8217;s why webapps need to be written to work properly (or bomb out and tell the user why) regardless of what weird acts the user performs.  Your comment about how it wasn&#8217;t really a problem that some user was running into trouble when he Ctrl-N&#8217;ed for a new window &#8220;because people normally wouldnâ€™t use the app the way he was&#8221; is really troubling (or at least it should be troubling to your clients).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graham</title>
		<link>http://madbean.com/2005/page-state/#comment-362</link>
		<dc:creator>graham</dc:creator>
		<pubDate>Thu, 14 Jul 2005 15:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-362</guid>
		<description>&lt;p&gt;the browser will decide whether sessions are shared across multiple tabs, even
windows. it isn't a limitation of server-side state tho, it is particular to your client.
I think it's more important that the user is aware og how their browser will work. i
had a client that came across a problem because he was using IE and cloning the window 
instead of creating a fresh session in a new window. in reality, the use case of using
multiple windows is rare amongst clients and the problem he was seeing wasn't really
a big issue because people normally wouldn't use the app the way he was.&lt;/p&gt;

&lt;p&gt;good idea about maintaining another context for page-flow, bit more work, but it would
have saved me trying to explain the use of sessions in web applications to a non-technical
client. i also agree with the last comment that it would be great to have support for that
in the big frameworks like struts and webwork because tabbed browsers are becoming
more and more popular so the problem will only get worse.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>the browser will decide whether sessions are shared across multiple tabs, even<br />
windows. it isn&#8217;t a limitation of server-side state tho, it is particular to your client.<br />
I think it&#8217;s more important that the user is aware og how their browser will work. i<br />
had a client that came across a problem because he was using IE and cloning the window<br />
instead of creating a fresh session in a new window. in reality, the use case of using<br />
multiple windows is rare amongst clients and the problem he was seeing wasn&#8217;t really<br />
a big issue because people normally wouldn&#8217;t use the app the way he was.</p>
<p>good idea about maintaining another context for page-flow, bit more work, but it would<br />
have saved me trying to explain the use of sessions in web applications to a non-technical<br />
client. i also agree with the last comment that it would be great to have support for that<br />
in the big frameworks like struts and webwork because tabbed browsers are becoming<br />
more and more popular so the problem will only get worse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trejkaz</title>
		<link>http://madbean.com/2005/page-state/#comment-361</link>
		<dc:creator>Trejkaz</dc:creator>
		<pubDate>Wed, 13 Jul 2005 23:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-361</guid>
		<description>&lt;p&gt;I agree.  It would be a massive inconvenience if Firefox dropped my cookies whenever opening a new tab.  Can you imagine trying to browse Slashdot with that kind of braindead setup?  Every time you opened a new tab from a comment link, your session would go away.  Which is fantastic because then, every time you wanted to comment back, you'd have to login again. :-)&lt;/p&gt;

&lt;p&gt;Now, window scope... that's a pretty frigging cool idea.  Why isn't that built into Struts?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I agree.  It would be a massive inconvenience if Firefox dropped my cookies whenever opening a new tab.  Can you imagine trying to browse Slashdot with that kind of braindead setup?  Every time you opened a new tab from a comment link, your session would go away.  Which is fantastic because then, every time you wanted to comment back, you&#8217;d have to login again. :-)</p>
<p>Now, window scope&#8230; that&#8217;s a pretty frigging cool idea.  Why isn&#8217;t that built into Struts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://madbean.com/2005/page-state/#comment-360</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 13 Jul 2005 14:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-360</guid>
		<description>&lt;p&gt;Yep I had a similar problem on a large web-app.  We got around this by associating a master parameter 'windowId' to a new scope level. So in effect, you then had page scope, request scope, window scope, session scope, application scope.  Forced proper use by by throwing an exception if no request parameter of 'windowId' was found.  It worked quite neatly.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yep I had a similar problem on a large web-app.  We got around this by associating a master parameter &#8216;windowId&#8217; to a new scope level. So in effect, you then had page scope, request scope, window scope, session scope, application scope.  Forced proper use by by throwing an exception if no request parameter of &#8216;windowId&#8217; was found.  It worked quite neatly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spud</title>
		<link>http://madbean.com/2005/page-state/#comment-359</link>
		<dc:creator>spud</dc:creator>
		<pubDate>Wed, 13 Jul 2005 13:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-359</guid>
		<description>&lt;p&gt;Graham, why is this a problem with the cookie implementation in the browser? It is quite common that all windows in a single browser "process" share cookies. Safari does this, IE and FireFox do it, etc. And it makes sense that it works that way.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Graham, why is this a problem with the cookie implementation in the browser? It is quite common that all windows in a single browser &#8220;process&#8221; share cookies. Safari does this, IE and FireFox do it, etc. And it makes sense that it works that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graham</title>
		<link>http://madbean.com/2005/page-state/#comment-358</link>
		<dc:creator>graham</dc:creator>
		<pubDate>Wed, 13 Jul 2005 09:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://madbean.com/2005/page-state/#comment-358</guid>
		<description>&lt;p&gt;the problem you're seeing is actually a problem with the 
cookie implementation in your browser and not a web app prob tho. for example, firefox
doesn't see tabs as new windows and will share session state and opening a second
IE using ctrl-new window sees the second window as part of the same session. however
using a shortcut to open a second IE will create two different sessions.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>the problem you&#8217;re seeing is actually a problem with the<br />
cookie implementation in your browser and not a web app prob tho. for example, firefox<br />
doesn&#8217;t see tabs as new windows and will share session state and opening a second<br />
IE using ctrl-new window sees the second window as part of the same session. however<br />
using a shortcut to open a second IE will create two different sessions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
