<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Head in the Web &#187; session</title>
	<atom:link href="http://techblog.fywservices.com/tag/session/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.fywservices.com</link>
	<description>Building a better user experience one technology at a time</description>
	<lastBuildDate>Tue, 03 Jan 2012 18:12:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>My Session Has Fallen and I Can&#8217;t Get Out</title>
		<link>http://techblog.fywservices.com/2009/08/my-session-has-fallen-and-i-cant-get-out/</link>
		<comments>http://techblog.fywservices.com/2009/08/my-session-has-fallen-and-i-cant-get-out/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 12:53:05 +0000</pubDate>
		<dc:creator>Scott Nelson</dc:creator>
				<category><![CDATA[Random Musings]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://techblog.fywservices.com/?p=228</guid>
		<description><![CDATA[Q: (paraphrased for grammar) How to automatically redirect to the login page after a session time out?

A: Assuming that there is a security session that is separate from your server session,  you can add a hidden AJAX component]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=1fdcc5aa84fd409b74de32bfd26699ba&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=40 height=40/><p>Ran across on question on LinkedIn today and thought the answer belonged here as well&#8230;</p>
<p>Q: (paraphrased for grammar) How to automatically redirect to the login page after a session time out?</p>
<p>A: Assuming that there is a security session that is separate from your server session,  you can add a hidden AJAX component that checks every n seconds and redirects when the session is closed. When you do this, you need to include in your keep alive call an appended parameter that is incremented or changed randomly each time or else you may get a cached response from the browser and miss that magic time out moment.</p>
<p>If you need to know if the session of the same application on the same server has timed out, there is a chicken and egg paradox as any call to the server to check if the session is still alive will keep the session alive, so it will never time out. I&#8217;ve heard of applications that have worked around this, but have not had to research it out as the requirement always resolved to a security session timing out that lived on another server (as described in the first paragraph) or the that simply have the page go to the login page on the next click after the timeout was acceptable.</p>
<p>To go to the login page after the next click in a timed out session, simply fill in the security node of your web.xml completely and the web server will do the rest.</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.fywservices.com/2009/08/my-session-has-fallen-and-i-cant-get-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WLP Sessions and Porlets in Shared Libraries</title>
		<link>http://techblog.fywservices.com/2009/06/sessions-and-porlets-in-shared-libraries/</link>
		<comments>http://techblog.fywservices.com/2009/06/sessions-and-porlets-in-shared-libraries/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 11:44:21 +0000</pubDate>
		<dc:creator>Scott Nelson</dc:creator>
				<category><![CDATA[WebLogic Portal]]></category>
		<category><![CDATA[WebLogic Server]]></category>
		<category><![CDATA[deployemnt descriptors]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[WLP]]></category>
		<category><![CDATA[WLS]]></category>
		<category><![CDATA[WSRP]]></category>

		<guid isPermaLink="false">http://techblog.fywservices.com/?p=180</guid>
		<description><![CDATA[Awhile back, I ran into an issue where session data was being lost between requests in a WebLogic Portal project. As it only occurred in a clustered environment, it was obvious that the value was not being persisted, even though persistence was set properly with &#60;wls:session-descriptor&#62; &#60;wls:persistent-store-type&#62;replicated_if_clustered&#60;/wls:persistent-store-type&#62; &#60;/wls:session-descriptor&#62; After much frustration, someone on the team [...]]]></description>
			<content:encoded><![CDATA[<img style='float: left; margin-right: 10px; border: none;' src='http://www.gravatar.com/avatar.php?gravatar_id=1fdcc5aa84fd409b74de32bfd26699ba&amp;default=http://use.perl.org/images/pix.gif' alt='No Gravatar' width=40 height=40/><p>Awhile back, I ran into an issue where session data was being lost between requests in a WebLogic Portal project. As it only occurred in a clustered environment, it was obvious that the value was not being persisted, even though persistence was set properly with</p>
<blockquote><p>&lt;wls:session-descriptor&gt;<br />
&lt;wls:persistent-store-type&gt;replicated_if_clustered&lt;/wls:persistent-store-type&gt;<br />
&lt;/wls:session-descriptor&gt;</p></blockquote>
<p>After much frustration, someone on the team ran across an additional setting for the session-descriptor node: sharing-enabled. In the case where a portlet is from a shared library, the persistence does not work unless sharing-enabled is set to true.</p>
<blockquote><p>&lt;wls:session-descriptor&gt;<br />
&lt;wls:persistent-store-type&gt;replicated_if_clustered&lt;/wls:persistent-store-type&gt;<br />
&lt;wls:sharing-enabled&gt;true&lt;/wls:sharing-enabled&gt;<br />
&lt;/wls:session-descriptor&gt;</p></blockquote>
<p>In hindsight, this behavior makes some sense, in that most portlets that are distributed as shared libraries by vendors do not require session values. However, in the case where a shared library is created by an application team to reuse portlets across portals where WSRP is not practical, the need to share sessions may arise, and now you know how to fix it.</p>
<p>For other deployment descriptor options, see <a href="http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html" target="_blank">http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.fywservices.com/2009/06/sessions-and-porlets-in-shared-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

