JSP Session Timeout in multiple pages (iframes used)

Hi,
Here is my scenario. I have a JSP Page i.e. A.jsp in which I am setting a session timeout to 3 minutes. I also have another JSP included i.e. B.jsp in the same page (A.jsp) using the following code i.e.
<IFRAME SRC="B.jsp" width="100%" height="800" frameborder="0" align="center">
         <!-- Alternate content for non-supporting browsers -->
</IFRAME>I am also setting a session timeout to 1 minute in the B.jsp. Now if the session timeout in one of the pages i.e. A.jsp or B.jsp I want to route to a different page i.e. C.jsp.
Now my problem is if the session timeouts in the B.jsp the C.jsp is shown inplace of the B.jsp page inside A.jsp. Means A.jsp still shows it's content at top and under it C.jsp is shown. I want to route to C.JSP page if a session timeouts in A.jsp or B.jsp and only show C.jsp.
Any help is appreciated.
Thanks

Where exactly I put the javascript. Here is currently I am checking for the session timeout:
String error = (String) request.getAttribute("Error");
    if (error != null)
        out.write("<center><strong>");
        out.write("<font color=\"Red\">");
        out.write(error);
        out.write("</font>");
        out.write("</strong></center>");
    response.setHeader("Cache-Control","no-cache"); //forces caches to obtain a new copy of the page from the origin server
    response.setHeader("Cache-Control","no-store"); //directs caches not to store the page under any circumstance
    response.setDateHeader("Expires", 0); //causes the proxy cache to see the page as "stale"
    response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
    String userName = (String) session.getAttribute("User");
    if (null == userName)
        request.setAttribute("Error", "Session has ended. Please login.");
        RequestDispatcher rd = request.getRequestDispatcher("C.jsp");
        rd.forward(request, response);
................The same code is in A.jsp and B.jsp. If I want to use the javascript to check if it's the top frame or not and redirect properly where exactly I need to put that code.
Thanks

Similar Messages

  • Session timeouts for login page with in a html frame

    Hi, i have a login page which when the session times out gets redisplayed within the frame of the html page where the session timed out , i have tried setting the session timeouts to be less than the other application so that the login page will timeout before the documentum application but this does not make a difference.
    does any one know how i could get the login page to redisplay by itself, outside of the html frame. do i need to have some javascript to figure out if there is a frame then redraw the page etc...and how should i di this ? any working examples will be appreciated.

    You would certainly need some Javascript or use the meta-refresh tag to the session timeout time. If you set the meta-refresh tag in a frame to a time just a little bit bigger than the session timeout time and the set your security mechanisms to force the user to login in again when the session times out, the frame will refresh after the session has timed out and the application should forward the frame to the login page.
    <meta http-equiv="refresh" content="session-timeout-timeout+1">
    (timeout time is in seconds)

  • Session Timeout Alert + login page has changed

    Hello,
    We recently updated our SAP CRM 7.0 from EHP1 to EHP3.
    Since than we get this "Session Timeout Alert" error and it is very annoying.
    I've changed the rdisp/plugin_auto_logout parameter to 7200 s but the session is still ending after about 10min.
    On EHP1 we didn't had this problem.
    Also it seems that the login page has changed because the username and password is not saved anymore and we need to introduce them every time we log in.
    Please help to solve these problems.
    Thanks!

    Hi Sudhir,
    My issue is also not solved!
    The server restart was only another possible solution.
    Very annoying!
    Still searching....
    BR

  • Multiple Page Print using e.HasMorePages [VB 2010 Express]

    What I want to do is to print all data from DataGridView1, when it reach the bottom of the page (i use variable panjang to compare), it will generate new page and then continue print the page from the DataGridView1 iteration.
    From My Code, it generates unlimited pages(loading pages forever), when I cancel it, all the page is same (print from the first row until the vairable panjang end it)
    Dim p As Pen
    p = New Pen(Brushes.Black, 2.5)
    For i As Integer = 0 To DataGridView1.RowCount - 1 Step 1
    For ic As Integer = 0 To DataGridView1.ColumnCount - 1 Step 1
    e.Graphics.FillRectangle(Brushes.DarkGray, New Rectangle(lebar, panjang, DataGridView1.Columns(ic).Width, DataGridView1.Rows(i).Height))
    e.Graphics.DrawRectangle(p, New Rectangle(lebar, panjang, DataGridView1.Columns(ic).Width, DataGridView1.Rows(i).Height))
    hasil = DataGridView1.Rows(i).Cells(ic).FormattedValue.ToString
    e.Graphics.DrawString(hasil, font2, Brushes.Black, lebar + 0.12, panjang + 0.12)
    lebar = lebar + DataGridView1.Columns(ic).Width
    Next ic
    panjang = panjang + 20
    lebar = 20
    If (panjang = 800) Then
    e.HasMorePages = True
    panjang = 40
    lebar = 20
    Exit Sub
    End If
    Next i
    e.HasMorePages = False
    Please help me, thanks...

    But
    For I As Integer = 0 to DataGridview1.RowCount - 1
    is the iteration of DataGridView1's data
    if i use 
    For I As Integer = panjang To DataGridView1.RowCount -1
    The result could not retrieve all the data from DataGridView1
    panjang is use for indicator for if it reach some number, generates new pages

  • How to put report title and page no to appear in multiple pages,when using cross tab reports

    Post Author: shaminranaweera
    CA Forum: General
    I am using crystal reports 9.0 with odbc foxpro database conectivity
    I have designed a cross tab report and it is on the report header part and all the report details  are fine,except that the report title and  and page no's only show on the first page of my report.Pls tell me how can i put my report title and page no on all the pages in my crosstab.

    Post Author: foghat
    CA Forum: General
    You need to put your title in the page header if you want it to appear on every page.  The report header only displays once per report.

  • Change default view across multiple page libraries using the same content type/types?

    I am the editor for a large SharePoint publishing site with approximately 130+ subsites. Based on our content, I've create two diffferent default views that will come in handy as we move to a distributed authorship model. (I'm thinking specifically about
    the Quick Edit/Excel-like feature to make quick changes to page/document metadata.) 
    The authors/content owner/editors have NO experience with SharePoint, so while the benefit of using views is that they can be tailored to individual needs, I'd like to start them off with something that is VERY easy to change on the fly. It's either that
    or, as just a power user in the CMS, go to each individual page and document library and change it manually, which could take days, if not longer. Thanks!
    Ryan D Watters

    Essentially, yes.
    That said, I am using SharePoint 2013, and I just now realized that I posted this in the legacy SP forum. You'll have to excuse me -- this is my first time posting:)
    Basically, I have two different "ideal" views based on two different site templates. These two site templates account for over 100 publishing subsites. The view has 18 different metadata that will make editing/making changes to article pages much
    easier for content owners because they will be able to go into the page libary>ribbon>library>quick edit and edit the metadata as if it were an Excel spreadsheet. This comes in especially handy for things like rollup order between primary, secondary,
    tertiary pages within a subsite.  Ideally, it would be nice to be able to add that view as an option within the CMS (similar to the way you can add a view style).
    I hope that makes sense. Also, I'll repost the question to SharePoint 2013. Much appreciated!
    Ryan D Watters

  • How can i create multiple page report using excel report generation toolkit from excel template?

    i am having code which create report in excel.but it prints only single page. if content is more than size of template than insted of tacking new page it prints only single page.Please help me out.
    Anyone has material for learning activeX in labview? Please mail me on [email protected] 
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

    Hi thanks for reply.....
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.

  • Using Vector to display ResultSet on multiple pages

    Hi all,
    I want to use Vector for Displaying the ResultSet in multiple pages for my JSP.
    Can anybody assist me on how to display Resultset on multiple pages by using Vectors.
    Thanks for any help in advance.
    regards,
    savdeep

    Haii Pls go through the code
    Vector v=new Vectior()
    while(rs.next())
       v.add(rs.getString(column name));
    v //vector is readyyyyyregards
    Shanu

  • How to check and change the dafault session timeout of the Portal?

    Hello,
    When leaving a portal page open without using it for a certain amount of time and then accessing it again the Session times-out.
    Where can I check and change this default time-out time in case I would like to extand it for the end users?
    Roy

    Hi Roy,
    Session timeout includes multiple settings (J2EE setting and SSO setting at User Management).
    Defining the Timeout in J2EE Session
           1.      Open file web.xml (path depends on the version of EP6.0. If it is based on NW04, then
    ..\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF
           2.      Enter a value in minutes under <session-timeout>. The value should roughly correspond to the length of a synchronization cycle. The default is 30 minutes.
    After a successful login, it receives a SSO ticket which is valid for longer duration (generally 8 hrs, default which you can changed using  "System Admin" as mentioned by Yoel.
    Thanks,
    Swapan

  • Multiple Page PDF Creation

    I would like to be able to scan in individual pages and then combine them as multiple page PDFs using Leopard.
    Can this be done? I don't have any PDF creation software.

    I have answered this myself.
    Leopard's Preview can combine individual PDFs by drag-and-drop. Nice.

  • Can you have a different colour horizontal Spry menu on multiple pages?

    Hi,
    I'm fairly new to Dreamweaver and CSS. So please forgive me ignorance.
    I've created a page with a horizontal spry menu bar, and have edited it according to how I want it to look.. Brilliant!. The problem I have is I want the exact same menu bar on multiple pages but using a different colour scheme for a couple of the pages!. Is this possible? Thanks

    I am sorry, but I do not see that you have added the suggested code to the document as per
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Touring Sport</title>
    <meta name="keywords" content="Football Tours, Youth Football Tours, Junior Football Tours, Boys Football Tours, Girls Football Tours, Ladies Football Tours, Mens Football Tours, European Football Tours, School Football Tours">
    <meta name="description" content="Football Tours in the UK and Europe.">
    <style type="text/css">
    <!--
    body {
         background-image: url(images/Touring%20Sport%20-%20Sports%20Tours,%20Schools%20Tours%20and%20Corporate%20Tours.jpg);
    a:visited {
         color: #660066;
    a:link {
         text-decoration: none;
         color: #660066;
    .Contact_Header {
         font-family: Helvetica;
         color: #660066;
         font-size: 95%;
         text-align: right;
    .Main_Text {
         font-family: Helvetica;
         color: #666;
         text-align: justify;
         font-size: 90%;
    -->
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script><style type="text/css">
    <!--
    a:hover {
         color: #993399;
    --></style></head>
    Gramps

  • Embed code to multiple pages globally?

    Just a quick one - but is there any way to automatically embed code (for example Google Analytics code) into multiple pages automatically using some clever trick, or is it a case of having to paste it in manually to every page?

    Use find and replace: Edit > Find & Replace
    Do a practice run. Duplicate your site folder first just incase it all goes belly up.
    Then open Find & Replace
    Find:
    </head>
    Replace with:
    (Your gooogle analytics code)
    </head>
    Choose folder and update every document in that folder

  • Cannot save beans in a session OR use the same beans in multiple pages

    Hi all I use these code to my jsp file to create a session and store a bean.
    Unfortunately, the session cannot store the beans so that I can use them in the next page.What did I omit? Regardless the session scope, can I use request scope beans and with jsp:forward use them in multiple page? (I have tried it but it doesn't work).
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page session="true"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%
    String nextPage = request.getParameter("np");
    if(nextPage.equalsIgnoreCase("checkDate")){
    %>
      <jsp:useBean id="checkDate" scope="request" class="essex.kkarad.beans.checkDateBean" />
      <jsp:setProperty name="checkDate" property="*"/>
    <%
        checkDate.validate();
    %>
    <jsp:forward page="Availability.jsp"></jsp:forward>
    <%
    } else if(nextPage.equalsIgnoreCase("checkRooms")) {
    %>
    <jsp:useBean id="checkRooms" scope="request" class="essex.kkarad.beans.checkRoomsBean" />
    <jsp:setProperty name="checkRooms" property="*"/>
    <%
       if(!checkRooms.validate()){
    %>
    <jsp:forward page="Availability.jsp"></jsp:forward>
    <%
    %>
    <%
    %>

    You should also be encoding the URL so that you don't have to worry about loosing the session if the user has cookies turned off:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page session="true"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%
      String nextPage = request.getParameter("np");
      String availabilityPage = response.encodeURL("Availability.jsp");
      if(nextPage.equalsIgnoreCase("checkDate")){
    %>
      <jsp:useBean id="checkDate" scope="session" class="essex.kkarad.beans.checkDateBean" />
      <jsp:setProperty name="checkDate" property="*"/>
    <%
        checkDate.validate();
    %>
    <jsp:forward page="<%=availabilityPage%>"></jsp:forward>
    <%
      } else if(nextPage.equalsIgnoreCase("checkRooms")) {
    %>
    <jsp:useBean id="checkRooms" scope="session" class="essex.kkarad.beans.checkRoomsBean" />
    <jsp:setProperty name="checkRooms" property="*"/>
    <%
       if(!checkRooms.validate()){
    %>
    <jsp:forward page="<%=availabilityPage%>"></jsp:forward>
    <%
    %>
    <%
    %>

  • Session Timeout directly taking to login page

    Hi,
    In our application when session time out happens, it is directly taking to login page, instead of showing the time out error message . We have a CustomExceptionHandler defined in our application. When I debugged, I identified that the following error message
    <StateManagerImpl><restoreView> Could not find saved view state for token -ppfn0o4n8 (*ADF_FACES-30107)*
    comes when user clicks login the second time.
    We want to know how to get the error message first before it goes to the login page? Any configuration we are missing?
    Here is our applications web.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>jndiContext</param-name>
    <param-value>inv</param-value>
    </context-param>
    <context-param>
    <param-name>UserEnvironmentName</param-name>
    <param-value>UserEnvironment</param-value>
    </context-param>
    <context-param>
    <param-name>CacheConfigureFile</param-name>
    <param-value>inv-cache.xml</param-value>
    </context-param>
    <context-param>
    <param-name>SecurityRepositoryClass</param-name>
    <param-value>oracle.communications.inventory.api.framework.security.impl.SecurityRepositoryImpl</param-value>
    </context-param>
    <context-param>
    <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
    <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adfinternal.view.rich.libraryPartitioning.ENABLED</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>ilog.views.faces.CONTROLLER_PATH</param-name>
    <param-value>/_contr</param-value>
    </context-param>
    <context-param>
    <param-name>ilog.views.faces.CONTENT_LENGTH_ENABLED</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
    <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>APPLICATION_NAME</param-name>
    <param-value>Unified Inventory Management</param-value>
    </context-param>
    <context-param>
    <param-name>COPYRIGHT_FROM_YEAR</param-name>
    <param-value>2007</param-value>
    </context-param>
    <context-param>
    <param-name>COPYRIGHT_TO_YEAR</param-name>
    <param-value>2011</param-value>
    </context-param>
    <context-param>
    <!-- Maximum memory per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
    <!-- Use 500K -->
    <param-value>512000</param-value>
    </context-param>
    <context-param>
    <!-- Maximum disk space per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
    <!-- Use 100M -->
    <param-value>104857600</param-value>
    </context-param>
    <filter>
    <filter-name>trinidad</filter-name>
    <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>trinidad</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <listener>
    <listener-class>oracle.communications.inventory.api.framework.listener.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.communications.inventory.ui.framework.IlogContextListener</listener-class>
    </listener>
    <!-- Cartridge Installer servlet for post re-deploy -->
    <listener>
    <listener-class>
    oracle.communications.inventory.cartridge.deploy.CartridgeInstallerServletContextListener
    </listener-class>
    </listener>
    <persistence-context-ref>
    <persistence-context-ref-name>persistence/EntityManager</persistence-context-ref-name>
    <persistence-unit-name>default</persistence-unit-name>
    </persistence-context-ref>
    <listener>
    <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>
    </listener>
    <servlet>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>MapProxyServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>GatewayServlet</servlet-name>
    <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>media</servlet-name>
    <servlet-class>oracle.communications.inventory.ui.media.servlet.MediaServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>BIGRAPHSERVLET</servlet-name>
    <url-pattern>/servlet/GraphServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>BIGAUGESERVLET</servlet-name>
    <url-pattern>/servlet/GaugeServlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>MapProxyServlet</servlet-name>
    <url-pattern>/mapproxy/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/bi/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>GatewayServlet</servlet-name>
    <url-pattern>/flashbridge/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>media</servlet-name>
    <url-pattern>/media_image</url-pattern>
    </servlet-mapping>
    <resource-ref>
    <res-ref-name>wm/ruleWorkManager</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Unshareable</res-sharing-scope>
    </resource-ref>
    <filter>
    <filter-name>JpsFilter</filter-name>
    <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
    <init-param>
    <param-name>enable.anonymous</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>remove.anonymous.role</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>addAllRoles</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>jaas.mode</param-name>
    <param-value>doasprivileged</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>JpsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>adfAuthentication</servlet-name>
    <servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
    <init-param>
    <param-name>success_url</param-name>
    <param-value>/faces/InventoryUIShell</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>ilog.views.faces.IlvFacesController</servlet-class>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/afr/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>adfAuthentication</servlet-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/_contr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <jsp-config>
    <jsp-property-group>
    <url-pattern>*.jsff</url-pattern>
    <is-xml>true</is-xml>
    </jsp-property-group>
    </jsp-config>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>allPages</web-resource-name>
    <url-pattern>/</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Unsecured resources</web-resource-name>
    <url-pattern>/images/</url-pattern>
    <url-pattern>*.png</url-pattern>
    <url-pattern>*.gif</url-pattern>
    <url-pattern>*.jpg</url-pattern>
    <url-pattern>*.jpeg</url-pattern>
    <url-pattern>*.bmp</url-pattern>
    <url-pattern>*.css</url-pattern>
    <url-pattern>*.js</url-pattern>
    <url-pattern>/css/*</url-pattern>
    <url-pattern>/afr/blank.html</url-pattern>
    </web-resource-collection>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/faces/login.jspx</form-login-page>
    <form-error-page>/faces/error.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <role-name>valid-users</role-name>
    </security-role>
    <welcome-file-list>
    <welcome-file>/faces/InventoryUIShell</welcome-file>
    </welcome-file-list>
    </web-app>

    hi
    this can be done using a simple "Servlet Filters" which will check whether the user session is valid or not. so for every connect to the server the filter runs and redirects to the login page if the session has expired. here you can configure your filter to be activated for every URL or a patterns of urls.
    u need servlet2.3 supported server for this.
    hope this helps
    shrini
    I have an business j2ee application run on oc4j. When the session timeout declared on the web.xml expire, i want to redirect automaticaly the user to my login.jsp to force him to reconnect. I try j_security_chek, but i want to restart the business application at the top and not to the page which are request. Somebody know who i can do this mechanism. I try too special tag in jsp, this run very good but i have to repeate this call on every page. I look for an other simply mechanism to that
    Thanks

  • Hyperion Smart Cut Session Issue streaming multiple reports at a time using

    This is a lengthly post with details, Please review with Patience:
    We are trying to integrate Workspace based web Analysis reports within our intranet portal, thru portlets (made from individual workspace smartcut link), so that users can customize their page as needed, Once they login thru intranet, Cookie is set and passed to succeeding smart cut links via secured http headers. This part is fine, but mainly running into issue with streaming several multiple web-analysis reports at a time,+ we are using Iframe to display and stream multiple individual reports on to one page, but unfortunately all Iframes are sharing one session rather than creating individual session, mostly because of limitation of current web analysis system architecture and IE browser behavior with sessions .
    Which Hyperion reporting tool does allow to stream multiple reports  at a time? ideally we want to create Iframe of each workspace report so that users can customize and pick portlets as needed. To stream multiple reports at a time.
    Problem Description: Hypeiron Web Analsysis, Smart cut reports incorrectly rendering images and intermixing dash boards on POV changes upon multiple reports being diplayed at one time thru Iframe's, issue seem to mostly relate to Hyperion using single session rather to multiple session when displaying several web reports at a time.
    Steps Needed To Reproduce:
    User logs into workspace.
    user click on expolore and able to view the report without any issues.
    When right on any of the report and select properties.
    Select the SmartCut url and paste it in the Internet explorer.
    The webanalysis report opens without any issues.
    Similarly user copies the smartcut url for a different report and paste the link on a different tab or new window of same browser.
    The report on the first tab gets over written of the report of the second tab of the browser.
    The issue happens when two different reports and opened on a browser with multiple tabs. The reports get over written.
    Oracle development answer:
    In the described scenario opening new browser window does not spawn a separate independent browser session. A new browser window is supplied with URL pointing to the same domain, so all browser cookies including the "ORA_WA_SID" (WA session cookie) are shared between the windows. But multiple application instances cannot run in the same browser session simultaneously because of session sharing. This is not actually a defect, but rather a limitation of current system architecture and browser behavior. And there is no way to fix it programmatically on the product side.

    Hi MeHyper,
    Your current arrangement puts most of the session handling and persistence on the client. This forces you to accept whatever the client decides to persist and propogate between browser elements (in this case iframes).
    My approach would be to:
    Consider coding your portlets to manage the sessions. Manage using a somewhat stateless strategy so that each request to the server requires a login and connect, retrieve, and disconnect. Each Iframe should access a different portlet url (or provide a different query) based on its content.
    This way, in theory, you can invalidate the sessions and related cookies and update the various report elements independently.
    Is smartview out of the question here?
    Regards,
    Robb Salzmann

Maybe you are looking for