Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    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.

    Eg:

    1. visit Personal Banking | NRI Banking | Corporate and Business Banking | Rural Banking | ICICI Bank
    a. In history it shows “Personal Banking | NRI Banking | Corporate and Business Banking | Rural Banking | ICICI Bank” and a link
    2. click on login to Personal banking on the top left corner.
    a. This will redirect to Travel Offer: ICICI Bank Online
    b. In history it shows “Travel Offer: ICICI Bank Online” and an image link to continue login
    3. Click on “Continue Login” Image button at the bottom mid section
    a. It redirects to https://infinity.icicibank.co.in/BAN...rate&abrdPrf=N
    4. The page opens for entering credentials for personal banking login
    a. This page is not seen in the history at all
    b. After logging in not a single page will be seen in the history
    c. This is what I have to achieve

    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.Cache.SetNoStore()
    Response.AppendHeader("Pragma", "no-cache")
    %>



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





    Solution 4:


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








    Thanks,
    Jaisingh Saini

  2. #2
    baloda is offline Member
    Join Date
    Nov 2010
    Location
    New Delhi
    Posts
    50
    Rep Power
    0

    Default

    Dear Jaisingh Saini,


    By using


    session=req.getSession(false);
    if(session!=null){
    session.invalidate();
    }

    your session expires and all the details(i.e. id and password of the user) stored in session are lost. after that the previous page in the browser history will not be functional. if u ask it properly every time a user takes any action on that. page.
    try it. its working for me.

    Good luck!!!

Similar Threads

  1. History of JVM
    By wilron8 in forum New To Java
    Replies: 5
    Last Post: 12-21-2008, 05:48 PM
  2. The Java Forums History...
    By CJSLMAN in forum Suggestions & Feedback
    Replies: 0
    Last Post: 12-21-2008, 04:28 PM
  3. browser's history
    By vissu007 in forum Networking
    Replies: 5
    Last Post: 07-01-2007, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •