Page Expires.

I've heard that we can expire the page using the meta tag or using the scriptet. Now, thats fine ! But though it might be a good idea to expire the page once its visited. I want to know why would one use this idea and that too , when we press back button of the browser it says "The page you are trying to access has been expired , click Refresh....." , Once we refresh it , It again gives the same details it had when it was not expired.
I've been using this :
<% response.setHeader("Pragma","no-cache");%>
<% response.setHeader("Cache-Control","no-store");%>
<% response.setDateHeader("Expires",-1);%> and using the meta tag i am using this :
<meta http-equiv="expires" content="0">
This has really been nailing me. Request you to please guide me on this.
Thanks in advance.
Yogendra Joshi.

When back button is pressed, browser will simply server page from history (cache) it will not request page from server,
but it cache "control : nocache" has been specified thn browser will not cache the page, will show page expires,
http://www.jyog.com

Similar Messages

  • Nice Page Expired Popup is not showing up

    Hello,
    I am using JDev 11.1.1.4 and created a new ADF Fusion Application.
    Then I adjusted the 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">
      <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
      </context-param>
      <context-param>
        <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
        <param-value>120</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>
        <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>
      <filter>
        <filter-name>trinidad</filter-name>
        <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
      </filter>
      <filter>
        <filter-name>ServletADFFilter</filter-name>
        <filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
      </filter>
      <filter-mapping>
        <filter-name>trinidad</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
      </filter-mapping>
      <filter-mapping>
        <filter-name>ServletADFFilter</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>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-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>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>
      <session-config>
        <session-timeout>3</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>swf</extension>
        <mime-type>application/x-shockwave-flash</mime-type>
      </mime-mapping>
    </web-app>I changed this
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>server</param-value>
      </context-param>
      <context-param>
        <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
        <param-value>120</param-value>
      </context-param>
      <session-config>
        <session-timeout>3</session-timeout>
      </session-config>My problem is that the "Expiration Warning" and "Page expired" popups are not appearing. The session is timing out after 3 minutes.
    Here you can find the popups I am looking for http://codeplay.net/2011/05/20/adf-session-expire-warning-and-prevent-links-browser-context-menu-in-web-xml/
    Does anyone has an idea what with my web.xml might be wrong.
    Again, I didn't do any other changes to the application.
    Greetings
    Tobias

    Is this feature will work only with jdev 11.1.1.4.0?
    i am using jdev 11.1.1.3.0 i did the same way but i am not getting popup.
    This is a new feature that is available in jdev 11.1.1.4.0 and is NOT available in jdev 11.1.1.3.0.
    For details check this:
    https://blogs.oracle.com/jdevotnharvest/entry/how-to_enable_user_session_time_out_warning_jdev_11114
    Thanks,
    Navaneeth

  • Page Expire - How to keep in cach from post request !!!

    I have a big problem with the back button resulting in Page Expired message. The system framework is to call servlets from any page. A servlets will perform necessary computations and forward the request with additional objects to a jsp page, which will in turn construct the page and display it to a user. Some of the constracted pages have back button, which simply redirects to the previous page.
    The problem that I have has been described in multiple forums before, but still appears to be not solved. When I press the back button that shall display previous page, generated by the Post request, I get Page Expired message. Note that this occurs only in IE (I am using 6.0 with SP1) and not in Mozilla (I am using 1.3). I did my homework and tried the following code in different combinations, but unsuccessful:
    resp.setHeader("Cache-Control", "public");
    res.setHeader("Pragma", "Cache");
    res.setHeader("Expires", "Fri, 30 May 2003 12:00:00 GMT");
    or directly in jsp page
    <META HTTP-EQUIV="Pragma" CONTENT="cache">
    <META http-equiv="expires" CONTENT=" Fri, 30 May 2003 12:00:00 GMT ">
    None seems to work in IE. It appears that the IE refuses to cache the page generated by the post request at all times.
    The application that I am working is huge and this is a big problem for us, we need to support IE with back buttons.
    Please help.

    I believe this is a requirement of the HTTP
    specification.Yep - section 13.10 for anyone who can't sleep. I believe the idea is that methods such as POST, PUT and DELETE cause an update at the server and so caching makes no sense - the client needs to view a new copy.
    To quote the spec:
    Some HTTP methods MUST cause a cache to invalidate an entity. This is either the entity referred to by the Request-URI, or by the Location or Content-Location headers (if present). These methods are:
    - PUT
    - DELETE
    - POST

  • ADF-UIX... How to make a page expire

    Dear sirs...
    is it possible to make every page in ADF UIX application expire?
    meaning when i am in page A and go to page B, if i click the browser Back button i would like to get the page expire warning.
    is this possible in JDeveloper 10.1.2.1???
    thanks in advance
    best regards

    Dear sirs...
    is it possible to make every page in ADF UIX application expire?
    meaning when i am in page A and go to page B, if i click the browser Back button i would like to get the page expire warning.
    is this possible in JDeveloper 10.1.2.1???
    thanks in advance
    best regards

  • Password reset, page expired, can't reset!

    Hello, rather annoyingly I subscribed to 30 days free and entered my bank details to continue with a pay monthly subscription. Since doing this 2 days ago my password doesn't work, more annoyingly when I end a forgot my password email to myself I click, input a new password only to find the page expired 0 minutes after receiving the email! I've lost 2 days of a 30 day free subscription! And now I can't access anything at all!!!! Very upset!

    The page is now working to change log in and no longer instantly expires; after an explanation from [email protected] to use my user name, not my email (oops) to log on, I am happily back on and can continue my subscription.

  • How to disable "Page Expired " dialog

    Hi,
    I have a problem about session expire. in my web application while time inactive (no request, no access) then "The page has expired" dialog on browser. how to disable the message dialog. dialog title is "Page expired".
    dialog Image link here: http://codeplay.net/wp-content/uploads/2011/05/expired.png
    thanks
    juddi
    Edited by: juddi on May 24, 2011 9:41 PM

    Thats correct the page expired warning does not come when the value is set to 0.
    But , if you remove the page expire warning message by setting the warning value to 0 .The expired page stays there and it the user does a ppr on that expired page he will get an ugly java exception message in popup. If the user does an action which causes a full page refresh there wont be a problem but ppr causes exception in popup like Error in ppr#36 java.lang.NullPointerException.
    If you want to handle that scenario you would need to override ADF Exception Handler http://blogs.oracle.com/jdevotnharvest/entry/extending_the_adf_controller_exception_handler and redirect to error page rather than show an exception in popup. Additionally, if you notice in the custom exception handler when such an view expired exception occurs the message of exception contains ADF_FACES-30108 . So you can check the message and redirect to a custom view expired page.
    Thanks ,
    Achinto Banerjee

  • New user, sign in but keeps me sending to trial page (expired already)

    I tried the program for 30 days and then decided to buy.
    When I log in and try to lauch it, it sends me to trial page (expired of course).
    Already unistalled and downloaded again. Not working.
    Anyone experienced that before?
    Thanks!

    Andrea,
    I believe this is one for Customer Care (tick I Still Need Help and hope for an agent available for a chat),
    http://helpx.adobe.com/contact.html?product=illustrator&topic=downloading-installing-and-s etting-up
    or for this specialized forum,
    http://forums.adobe.com/community/download_install_setup

  • Page expires option in CS4

    HI
    I have CS3 and i created a connection for someone to use CS4 on the same site. I was at their office yesterday creating a new page with CS4 and one of the options on the save box was Page Expires on - but it was grayed out and wouldn't let me edit. Is this for website use or blog use? can some explain the Page expires function in CS4. Thank you.

    HI
    I see i forgot an important part of the problem. I am administering the site in CS3 - my client has CS4. I don't believe CS3 has the page expiry option in administrative settings - i am not seeing it if it does.
    Would administering a site in CS3 for a CS4 user create any problems? If I am not able to enable or disable the page expiry settings - would it just stand as disabled and not affect any of the new pages created on the site with CS4?
    Thank you for your help!!

  • Page expired: Error reference: PXE98EGP

    Error reference: PXE98EGPI keep receiving this page expired page error after I close an try to reopen to get to my camera home security... This is getting very frustrating ... I am paying good money and expect access on demand ... Only happens with the comcast page too.... I am using IE 11 and tried it with firefox 36.04  and same result ???   

    Same problem here. Somehow it works on my laptop at work with win7 on Firefox. And it used to work on my devices: home laptop with win8.1/win10 on IE11 or Firefox and tablet with win8.1 on IE11 or Firefox. Now only my work laptop gets through. going to the subscriber web portal in all cases. Page expired error PXE98EGP. It's bad enough that xfinity doesn't have an app or program for windows devices, now it doesn't work my modern windows devices. Might dump comcast before switching to iOS or android devices instead!!!

  • Action calling action cause page expires?:

    Hi
    I am using struts with titles. My problem is when I press the back button in the internet explorer my page expires. I tried nocache property set it as both a way in jsp.
    Note: my application design is every time an action calls another action that action only brings the page.
    Is this the problem? If so what is the solution.

    Is id the property of the sessionBean you're interested in?
    Following the About the Application Model Tutorial,
    To set properties I use:
    getSessionBean1().set<propertyName>(<object>)
    getSessionBean1().setID(new Integer(problemRowSet.getInt("ID")To get properties I use:
    getSessionBean1().get<propertyName>()
    getSessionBean1().getID()As for the button action event, I'd right click it in the designer to let Creator generate the function. If I fill it in myself sometimes Creator acts like it wasn't there. :(

  • Make page expire so that it can't be accessed with back button

    Hi,
    Can anyone help with a problem I have?
    I've got a form sending credit card details which i'm sending with the post method to a servlet. When the user gets to the next page they can click back, change the details and submit it again. I wan't to stop this by having one of those "this page has expired" pages. Does anyone know how I can do this?
    All my pages run through the same servlet which runs through the same jsp.
    Many Thanks,
    Phil

    I'd prefer not to involve the users session if
    possible though.Any reason for this? The session is created and maintained by the jsp engine whether you use it or not, so why not take advantage of it? If you're taking credit cards, evidently the users of your site are buying stuff, so how do you manage a shopping cart without a session?
    I could do a similar thing to preaney's suggestion but
    with a cookie instead of the session but i'm not a fan
    of cookies when its not neccessary.The sessions are maintained with cookies ( or by URL rewriting when cookies can't be used ), so by explicitly storing cookies on the client is a lot like reinventing the wheel.

  • Page Expiration and "Edit" in Internet Explorer

    Hi All,
    I have built a a admin system whereby a jsp page is a standard business contract that is displayed in Internet Explorer and printed out. However sometimes the contract needs to be altered slightly, so I thought you would be able to hit "Edit" in the browser, however for some reason "Edit" is disabled. Microsoft knowledgebase say that is because the page has "expired" already i.e. "Expires" is not set - so I tried using
    response.setDateHeader("Expires", new Date().getTime()+1000);
    to set an expiry bt this does not sem to work - any ideas anyone?

    I am talking about being able to "Edit" the currently displayed html page.The reason I mentioned using the "Edit" on the browser menu bar is because that function will not work with JSP or other dynamically created web pages. It's designed to edit static web pages.
    It might let you edit something ... the textual output from the page generator ... but there's no way the browser will be able to save that back to a dynamic JSP page.
    Now, this is just what it sounds to me like you want to do, and if I've got your intent up-side-down and backwards, I apologize. But I think what you probably want to do is to set up a form with a submit button that will send specific fields back to the web server. Then, on your web server, a JSP program will handle those fields and make updates to some sort of database.
    The "Edit" menu button on the browser can not do anything like to that.

  • How to make the page expired when user click back

    how to make the page as expired when i click back button on the browser.
    i want a better way.
    actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
    response.setheader is not working ...
    i have redirect when click back using
    <body onunload>....i call another page here.
    but it is not a good way.
    so pls help me to solve this problem
    using session or another good way

    Use this instead.
    Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

  • Tomcat security: Page Expired. I do want my JSPs to cache. How?

    I have a bunch of JSPs and servlets. I setup Tomcat security (<auth-method>FORM...) and now I get this message:
    Warning: Page has Expired...resubmit...refresh...
    Virtually all posts on this issue do not want their pages cached. I do want my pages to cache. I want my servlets and JSPs to act exactly like they did before I turned on the security. Any suggestions?
    TIA,
    Logan

    These lines are often used to stop caching. Are there comparable lines to cause jsp
    pages to keep caching even after security is turned on?
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");

  • Page expire problem in one env of two environments having same code

    Hi,
    We have an web application deployed into two environments. The application versions and server versions are same in both environments. We are using sun one application server.
    When we click on back button (Say Env1) we are getting page exipre problem. The same code is working fine in other env (Say Env2).
    We have not coded anywhere to clear the client side information after it is displayed. It looks like there is some server setting using which we can specify not to save any information at client machine.
    Can any one of you help me in resolving this issue.
    Thanks in advance.
    K Vishnu Chaithanya

    http://support.microsoft.com/kb/234067
    http://lists.evolt.org/archive/Week-of-Mon-20040405/157547.html

Maybe you are looking for