Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: I donít want my pages to be shown in the history at all.

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Default I donít want my pages to be shown in the history at all.

    Dear All,

    I am using Java 5.0 for creating a web application. There is a security related implementation to be done. I have tried all my sources but all in drain. I would appeal to all experts who have handled security aspects in java or programmers who would want to give a helping hand to come forward.

    Desired output: any page loads in an internet browser is stored for future reference in the history section, which is mostly accessible using shortcut Ctrl+H. I don’t want my pages to be shown in the history at all.

    Please help as our assignment is pending since long, we may end up losing the project. Any guidance would be highly appreciated.

    I have tried below solutions which didn’t give any success:

    Solution 1:
    1. <%
    2. session.invalidate();
    3. response.setHeader("Cache-Control","no-cache");
    4. response.setHeader("Cache-Control","no-store");
    5. response.setDateHeader("Expires", 0);
    6. response.sendRedirect("home.jsp");
    7. %>

    Solution 2:
    Response.Cache.SetExpires(DateTime.Parse(DateTime. Now.ToString()))
    Response.Cache.SetCacheability(HttpCacheability.Pr ivate)
    Response.AppendHeader("Pragma", "no-cache")

    Solution 3:
    <body onload="history.forward()">

    Solution 4:

    response.setDateHeader("Last-Modified", System.currentTimeMillis());

    Jaisingh Saini
    Last edited by copeg; November 17th, 2010 at 10:15 AM. Reason: Removed external links

Similar Threads

  1. How to Hyper-link pages together in Java?
    By don.java1 in forum Java Applets
    Replies: 5
    Last Post: July 21st, 2008, 05:09 AM