[ 
https://issues.apache.org/jira/browse/TRINIDAD-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568841#action_12568841
 ] 

Matthias Weßendorf commented on TRINIDAD-943:
---------------------------------------------

Why not introducing a new ctx param:

 <context-param>
   <param-name>org.apache.myfaces.trinidad.TIMEOUT_URL</param-name>
   <param-value>my_page_url</param-value>
 </context-param>

and incase of PPR AND!!! TIMEOUT_URL is set, send down something like this:
<?Tr-XHR-Response-Type ?>
<redirect>
TIMEOUT_URL
</redirect>
(TrPage._handlePprResponse() already handles <redirect>url</redirect>)

when no TIMEOUT_URL is set, I see two options:
-redirect to "/"
-<script>alert("timeout");</script> (yes, timeout is NOT hard-coded....)

For the non PPR

externalContext.redirect(TIMEOUT_URL);
(or "/")

Please note, (being a portlet ignorant :-)) I don't know if/how this
works in a portlet.

> handle session timeout
> ----------------------
>
>                 Key: TRINIDAD-943
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-943
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>
> provide solution to handle session timeouts

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to