<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Session timeout action"]]></title>
		<link>http://jforum.icesoft.org/JForum/posts/list/12.page</link>
		<description><![CDATA[Latest messages posted in the topic "Session timeout action"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Session timeout action</title>
				<description><![CDATA[ Hi,

Right after a session timed out, can I recreate a new session by redirecting the user to a login page(or something like that)?

The behaviour now is, when the session expired, I can do much even if I try to login from the front page again.

Help?]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#8588</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#8588</link>
				<pubDate><![CDATA[Thu, 20 Jul 2006 00:00:00]]> GMT</pubDate>
				<author><![CDATA[ seymores]]></author>
			</item>
			<item>
				<title>Re: Session timeout action</title>
				<description><![CDATA[ Hi,

If you're using container-managed security, you can set this up to automatically redirect to a login page. In your web.xml, just define your form-based authentication and login page:

<security-constraint>
<web-resource-collection>
<web-resource-name>SecurePages</web-resource-name>
<description>Security constraint for resources in the secure directory</description>
<url-pattern>/secure/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>

<auth-constraint>
<description>only let the system user login </description>
<role-name>admin</role-name>
</auth-constraint>

<user-data-constraint>
<description>SSL not required</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/LoginForm.iface</form-login-page>
<form-error-page>/LoginError.html</form-error-page>
</form-login-config>
</login-config>

Thanks,
Philip]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#8616</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#8616</link>
				<pubDate><![CDATA[Thu, 20 Jul 2006 00:00:00]]> GMT</pubDate>
				<author><![CDATA[ philip.breau]]></author>
			</item>
			<item>
				<title>Re: Session timeout action</title>
				<description><![CDATA[ Philip: Essentially, what your saying is instead of seeing the overlay Session Timeout screen on my page of where the session timed out or the page errored, by using container-managed security I can redirect a user to a new login page or page of my choice?

Thanks,

--Todd]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#8686</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#8686</link>
				<pubDate><![CDATA[Thu, 20 Jul 2006 00:00:00]]> GMT</pubDate>
				<author><![CDATA[ jtp51]]></author>
			</item>
			<item>
				<title>Re: Session timeout action</title>
				<description><![CDATA[ Hi,

Yes, the container should intercept any requests to secured resources and redirect to a login page if the session has expired.

Thanks,
Philip]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#8688</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#8688</link>
				<pubDate><![CDATA[Thu, 20 Jul 2006 00:00:00]]> GMT</pubDate>
				<author><![CDATA[ philip.breau]]></author>
			</item>
			<item>
				<title>Re: Session timeout action</title>
				<description><![CDATA[ Thank you, I'll give a go and see how it works out.

Thanks again.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#8706</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#8706</link>
				<pubDate><![CDATA[Thu, 20 Jul 2006 00:00:00]]> GMT</pubDate>
				<author><![CDATA[ seymores]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ Hi, 

Even with container managed security, when session expired, when I click on a icefaces link, I didn't get back to the login page. I have to use browser reload button to get back to the login page. To me this is not a desired behavior. Do you have any suggestion how to solve this issue? I tried to implement a servlet filter to handle session expiration redirect, but I have similar problem. Once the session expires, icefaces will not respond to any mouse click unless a page reload.

thanks]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#16907</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#16907</link>
				<pubDate><![CDATA[Sat, 10 Feb 2007 14:21:31]]> GMT</pubDate>
				<author><![CDATA[ fxji@yahoo.com]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ Anyone solved this? We have similar problems...]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#27941</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#27941</link>
				<pubDate><![CDATA[Thu, 22 Nov 2007 08:08:17]]> GMT</pubDate>
				<author><![CDATA[ drumac]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ Any updates on this issue?  I'm facing a similar situation.  

I've a connection status component I'm using on the top right of the page.  AFter the session times out I can see a red mark on it which indicates to me that the session expired.  But for a novice user of my application, this is not intuitive at all.

Currently I've to tell the user to click the browser 'Reload' button to activate the container security to make the application go back to the login screen!!

Users are more accustomed to the page automatically getting redirected to another page which states that their session had expired and possibly present new buttons/links to log back in.

How can I do this with ICEfaces?

Regards,
Eashwaran.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#30847</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#30847</link>
				<pubDate><![CDATA[Wed, 13 Feb 2008 17:34:38]]> GMT</pubDate>
				<author><![CDATA[ eashwaranp]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ Hi,

you just need to add this lines into your web.xml, in order to redirect on the login page when session is broken:

<context-param>
	<param-name>
		com.icesoft.faces.connectionLostRedirectURI
	</param-name>
	<param-value>'/index.jsp'</param-value>
</context-param>

regards
Bal.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#30856</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#30856</link>
				<pubDate><![CDATA[Thu, 14 Feb 2008 02:59:02]]> GMT</pubDate>
				<author><![CDATA[ Baleyba]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ I made a filter to detect session expiration but this was not enough, you need to refresh the page...

I will try with a listener that checks session state and send a redirect order with server push right before session timeout.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#30857</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#30857</link>
				<pubDate><![CDATA[Thu, 14 Feb 2008 03:01:54]]> GMT</pubDate>
				<author><![CDATA[ pred]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ <p></p>

		<cite>Baleyba wrote:</cite><br>
		<blockquote>Hi,

you just need to add this lines into your web.xml, in order to redirect on the login page when session is broken:

<context-param>
	<param-name>
		com.icesoft.faces.connectionLostRedirectURI
	</param-name>
	<param-value>'/index.jsp'</param-value>
</context-param>

regards
Bal.&nbsp;
		</blockquote>

<b>Wow! that works really well.  Thanks, that was just what I needed :-)</b>  <font color='red'>(New Note Added: pls see next message too)</font>

One thing to note though: The param-value's value needs to be inside single quotes, just like you have shown; if not the ICEfaces page encounters javascript errors (for me it said 'configuration' not found, probably because I had this definition without quotes in the param-value just above the contextConfigLocation param-value definition).

Thanks again,
Eashwaran.]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#30873</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#30873</link>
				<pubDate><![CDATA[Thu, 14 Feb 2008 10:15:08]]> GMT</pubDate>
				<author><![CDATA[ eashwaranp]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ Hello Baleyba,

I've seen some issues with the connectionLostRedirectURI approach.  Yes this does work when session times out, but that is not just it!

It also kicks in when some uncaught exceptions are triggered on the server.  It also seems to kick in when there is a network delay and the connection to the server is intermittently lost, but long enough for this feature to transition the app to the lost uri page.   My lost uri page has a 'Click here to login' link, and clicking ont this just takes me back into the application without going through the login page.  This indicates that teh session really did not expire, it was just network delay.

<b>I think what we need is a new parameter (say sessionExpiredRedirectURI) that would allow us to configure a new page for just session expiry.</b>

Regards,
Eashwaran.
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#31100</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#31100</link>
				<pubDate><![CDATA[Wed, 20 Feb 2008 17:20:25]]> GMT</pubDate>
				<author><![CDATA[ eashwaranp]]></author>
			</item>
			<item>
				<title>Re:Session timeout action</title>
				<description><![CDATA[ <p></p>

		<cite>pred wrote:</cite><br>
		<blockquote>I made a filter to detect session expiration but this was not enough, you need to refresh the page...

I will try with a listener that checks session state and send a redirect order with server push right before session timeout.&nbsp;
		</blockquote>

I tried a filter following <a href='http://www.netbeans.org/kb/55/sessionredirect.html' target='_new' rel="nofollow">http://www.netbeans.org/kb/55/sessionredirect.html</a> example.  Mapping this filter to Persistent Faces Servlet didn't seem to get me to the code that calls sendRedirect (i.e. isNew true and firstRequest != 0).  But when I mapped this filter to Blocking Servlet, this redirect code seems to kickin.  But nothing happens on my browser!   When I click refresh on browser, my login page comes up, which is a result of ACEGI security filters that are in place in my application.

I tried to see if the combo of redirectURI and the filter works, but the redirectURI always wins!  

We really need a way for ICEfaces to detect session timeout, not other issues like uncaught exceptions or network delays.  

Regards,
Eashwaran.
]]></description>
				<guid isPermaLink="true">http://jforum.icesoft.org/JForum/posts/list/1767.page#31148</guid>
				<link>http://jforum.icesoft.org/JForum/posts/list/1767.page#31148</link>
				<pubDate><![CDATA[Thu, 21 Feb 2008 16:41:07]]> GMT</pubDate>
				<author><![CDATA[ eashwaranp]]></author>
			</item>
	</channel>
</rss>
