How do I close a PDF document automatically when the browser is closed?

I have a web app writen in HTML/ASP. In order to acccess this app, our users have to enter a password and user id. Once on the main page of the app, they can click on a link which opens the reader in another window. Quite often, when finished with the app, they close the browser, but leave the reader window open (with sensitive information). It is becoming to riskly to hope that they remember to close that window also, even with visual reminders. I would like for that window to close automatically when the browser with the app is closed.
Can this be done?

Let me elaborate a little more on what I am trying to do.
(1) A website (#1) is opened after entering a UID and PWD.
(2) Within website #1, a link is clicked which opens a second web app (#2) in a seperate window using window.open().
(3) Within website #2, a user can click on a link which opens a PDF as _SELF.
(4) If the user:
     (a) exits out of website #1 by closing the brower
     (b) we would like to automatically close the PDF from website #2 also, as this contains sensitive information and most of the time the users are forgetting to close it

Similar Messages

  • Destroy the session automatically when the browser is closed by user

    Is it possible to automatically destroy a session when the browser is closed by the user with the X?
    Basically, what we want to do is to create the same effect when the user is closing the browser (with the X button) as when the ordinary log out button is used. That is to have the session destroyed.
    Any ideas?
    /Carl-Johan

    Hope this helps...
    Refer note : 904155
    from SAP Note 904155----
    Symptom
    A BSP application is not terminated correctly when the user closes the browser window or navigates to other URL.
    The popup window, which appears on browse closure, contains the
    text representing <img> HTML element content in the escaped
    form, like that:
    <IMG WIDTH=quot; HEIGHT=quot; SRC="...
    After the popup disappears, the session remains opened.
    Since the session is not removed, that may result in database locks that still remain and can be found in transaction SM12.
    Other terms
    Business Server Pages, WebAS, sessionexit, session termination, SM12, SM04, SYSTEM, session_single_frame.htm
    Reason and Prerequisites
    Reason:
    The problem is caused by the minor code inconsistency in BSP application SYSTEM -> page SESSIONEXIT.HTM.
    Prerequisites:
    1. The application is using the SYSTEM application page SESSIONEXIT.HTM for logoff. When it runs, suddenly HTML source code appears on the logoff screen.
    2. SAP_BASIS 620 SP57 or SAP_BASIS 640 SP15 or SAP_BASIS 700 SP06 are installed.
    Solution
    Please install SAP_BASIS 620 SP58 or SAP_BASIS 640 SP16 or SAP_BASIS 700 SP07
    or
    apply the code correction as described below:
    1. Go to BSP Application SYSTEM.
    2. Select page SESSIONEXIT.HTM and turn on Change mode.
    3. Change the line:
    <%=application->session_exit( exit_url = app-exit_url namespace = app-appl_ns name = app-appl_name page = app-page_name )%>
    to:
    <%raw=application->session_exit( exit_url = app-exit_url namespace = app-appl_ns name = app-appl_name page = app-page_name )%>
    Arun
    P.S Assigning points is a way of saying thank you on SDN
    Message was edited by: Arun Varadarajan

  • In adf,how to delete a file generated on server,when the webpage is closed

    Hi,
    I have an application consisting of 2 pages. in the 1st page i will give some input details and when i click on submit, some java code is getting executed in the back. That java code generates a csv file in the server location. after succesful execution of java code, i was redirected to 2nd page. In 2nd page, i am giving option to download and when the user clicked on download button and after the file is downloaded -- in the backend i am deleting the file from the server. Till this point everything is fine. But if the user didnt click on the Download button and instead if he closes the browser, the csv file gets remained on the server itself. This is the issue i am facing .. I am not able to get an idea in ADF Framework, how to delete a file when the browser is closed. Please help me out in this.
    Thanks in advance !!!

    ADF has nothing to do with tracking browser close buttons. What you can do is call a JS function and call the method which deletes the file from within the JS function. ADF has a component for calling java code from JS call.

  • How to logout an user when the browser is closed?

    Hi,
    does someone knows how to logout an user when the browser is closed?
    Thanks.

    Hi,
    There is an api wwctx_sso.cleanup_sessions which removes old sessions. This takes a parameter "p_hours_old" which indicates the age of the sessions which need to be removed. There is a job which runs which in turn calls this api to clean up sessions which are 7 days old or 168 hours old. You can see this from the dba_jobs table. You can try running this api.
    Thanks,
    Sharmila

  • How to call a method when the browser is closing

    Hello,
       In my application I need to execute a specific treatment when the WD4A application is closing.  So how can we have a handle method for this specific event.
       I've seen some documentation about the "exit plugs" , and about the doonclose method of the window.. but I don't think it can be useable for me in this case.
    Can you please help me
    Thanks in Advance
    Hamza

    I wrote an insert into the method i set up a break point, the program never call this code and therefore, the new row is never inserted.
    But i think, it's a misunderstand. 
    to summarize :
    I have an application in WD4A
    The application is running, and then I decide to close the browser (in my case internet explorer) and before the browser close I want to execute a piece of code.
    If the method wddoonclose is to be used, is there any default handler or listener to trigger it automatically on the browser closing ?
    If no, how to trigger a method base on this special event .
    Thx
    Hamza

  • Opening a pdf document automatically from the program

    Hi guys,
    I wonder if it's possible to 'run'/open from a standalone appliation a pdf document. I mean, my program produces a pdf file and it saves it on the local c drive. once this is completed i wonder how can i open it and show it to the enduser. (I want to save the time and hassle of locating it and double clicking the document)
    thanks
    peter

    Let me elaborate a little more on what I am trying to do.
    (1) A website (#1) is opened after entering a UID and PWD.
    (2) Within website #1, a link is clicked which opens a second web app (#2) in a seperate window using window.open().
    (3) Within website #2, a user can click on a link which opens a PDF as _SELF.
    (4) If the user:
         (a) exits out of website #1 by closing the brower
         (b) we would like to automatically close the PDF from website #2 also, as this contains sensitive information and most of the time the users are forgetting to close it

  • How can I convert a pdf document written in the Cyrillic (Russian) script into a MS Word document in the Cyrillic script?

    I wish to convert a pdf document using a very small font from Cyrillic script into an MS Word document likewise using Cyrillic script. Then I could zoom up the size of the pdf document's script. Is there any way  this can be done?
    Julyan Watts, Hungary

    Why can't you just zoom in Adobe Reader?

  • How do I generate a PDF output report when the layout template is an Excel file in BI publisher 11.1.1.7

    This is what I did ..
    1. Create new report
    2. Create a report using an existing Data Model (browsed and picked a data model)
    3. How do you want to create your report? (clicked on Used Report Editor)
    4. Clicked Finished (then saved the report)
    5. Then it asked me to create layout (I chose Upload or Generate Layout and then browsed for an uploaded  my excel template with XDO_* column mappings to the data model)
         Template File = Excel Template, Locale = English (US)
    5.  Clicked on Upload
    6.  Then clicked on View Report on the top right, which opened up my report file name "my_report_layoutname.xls"  with sheet 1 (xdo mapped all fine) and a xdo_metadata sheet.
    I just wanted step 6 to be a pdf report of sheet 1.    How do I do that ?  Can't find the place where I can specify that.
    M. Jamal

    Thanks Daniel for pointing that out.  Though you answer is helpful but I am not sure if that is what I would want to do.
    The link you provide for csv says "For each report there's an _report.xdo file that contains the XML structure of the report... "   It suggests I modify the .xdo file for each report.  I currently have 16 reports.
    Does it mean I modify the .xdo file for all 16  and what happens if someone creates a 17th report ?
    Also, what if I run the same report using different input parameters will that change the xml structure for the report  and therefore will need me to modify the .xdo again ? (I think it should not change the xml structure so the answer should be "NO" to that, unless I change the structure of the report).
    Finally, the link you provide says after doing what it suggest  "Now log back into BI publisher and select the report. You should now be able to see that CSV is now an option."
    CSV should be an option where ? on what screen/page ?  Maybe PDF is already an option for me that I cant see because I do not know where that option is.
    I was hoping there would be something I could do on the xdo_metadata sheet (in the data constraints section or elsewhere) OR in BI Publisher itself as some property of the report.
    I will try out what you suggest any ways.
    M. Jamal

  • Can't change the document title when the browser is opened in dialog mode

    Hello experts,
    I'm working on a solution which involves opening up another .jspx page in dialog mode. I need to change the title of the dialog browser window dynamically when the user performs a specific action on the dialog page.
    Unfortunately, I can't get this to work. I have tried using JavaScript and had no luck. I tested this technique on a non-dialog page and it works fine. Please help.
    Here is the markup code for launching the dialog page:
    <af:activeCommandToolbarButton id="actbPreview"
    icon="/graphics/previewscreen_enabled.gif";
    text="Preview"
    action="dialog:weCreate"
    useWindow="true"
    windowHeight="620"
    windowWidth="1120"
    disabled="#{empty bindings.MapElemUnqId.inputValue}"
    launchListener="#{backing_weQuery.launchPreviewerListener}"
    binding="#{backing_weQuery.actbPreview}"
    returnListener="#{backing_weQuery.returnPreviewerListener}"
    clientComponent="true"
    windowModalityType="applicationModal"
    windowEmbedStyle="window"
    disabledIcon="/graphics/previewscreen_disabled.gif";/>
    On the dialog page, here is the markup and javascript for setting the browser window title:
    <af:commandButton text="title" id="cb10">
    <af:clientListener method="setWindowTitle"
    type="action"/>
    </af:commandButton>
    function setWindowTitle(actionEvent)
    actionEvent.cancel();
    var doc = AdfPage.PAGE.findComponent("d1");
    doc.setTitle("TEST");
    alert("Title="+doc.getTitle());
    }

    Thanks for your response.
    I tried that and I could not get it to work. Even though I can set pageFlowScope.pageTitle dynamically, the browser window title does not refresh (I tried to refresh via PPR and full post back).
    here is my code:
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    RequestContext.getCurrentInstance().addPartialTarget(this.document);
    public void setPageTitle(ActionEvent actionEvent)
    RequestContext requestContext = RequestContext.getCurrentInstance();
    Map pfs = requestContext.getPageFlowScope();
    pfs.put("pageTitle","TEST 2");
    FacesContext context = FacesContext.getCurrentInstance();
    String currentView = context.getViewRoot().getViewId();
    ViewHandler vh = context.getApplication().getViewHandler();
    UIViewRoot x = vh.createView(context, currentView);
    x.setViewId(currentView);
    context.setViewRoot(x);
    }

  • How to force the end of an user session when the browser is closed?

    Hi,
    When the user close the browser, the portal session remains. If the user open a new browser window, we ill be back to the portal without the need of a new Login. Is there any way to force a new login in this situation. A similar problem happens also when there is a reboot in the application server. After the reboot, all users can connect to the App Server without the necessity to login.
    Is ther any way to avoid this kind of behavior?
    Thanks.

    Ok... Its as i thought... unfortunatly...
    Gonna mark your latest post again as possible solution, just in case someone comes with any sort of out of the box thing...
    Thx for your help Kglad

  • Print PDF Document Automatically

    Hello All,
    We are developeing BI Publisher reports from existing oracle custom repots.
    One of the solution has to be implemented is "The output PDF file should be printed automatically".
    When i googled this a page read,
    "As per Bug 1243042, Oracle Applications supports PDF output for viewing only, "This is the way the Applications are designed and implemented... anything beyond this would be more of an enhancement request.". That is, printing PDF directly from the concurrent manager is not supported. This concurrent manager limitation is also present in release 11.5."
    Can we print a PDF document automatically upon the compeletion of a request.
    If we can then how can i implement this.
    Can we use shell program implement this.
    Regards,
    Kannan Balasubramanian

    Hi Ron,
    We have R12 on AIX 5.3, I have configured pasta, oracle standard reports like "Active Users" are being printed to printer in post script format.
    But I am having issue in printing XML Publisher reports in pdf format, I have extracted ghostscript-8.64.tar and compiled and installed as applmgr with required pdf2ps utility. I have included in tools_path, bounced ccm.
    The XML publisher PO print request fails with "/pdf2ps[38]: gs: not found."
    Any help is apperciated.
    Thanks

  • Specifying pdf document's name in browser - content-disposition problem

    Hello ,
    I want to open a PDF document in browser, which needs to have a specified filename when user tries to save it.
    My web app sends an "application/pdf" document back to the browser.
    I use the Content-Disposition HTTP header to instruct the browser to open the document inline, i.e. using the appropriate plugin, which is Adobe PDF in this case. When the user clicks Save As..., the document filename needs to be the one specified by the same HTTP header. Here is the code:
    response.setContentType("application/pdf");
    String contentDisposition = "inline; filename=\"filename.pdf\"";
    response.setHeader ("Content-Disposition", contentDisposition);
    response.setHeader ("Content-Length",new Long(file.length()).toString());Unfortunately this does not work for me. Document opens fine, but I can't get it to have the name I specified. The plugin uses the default name, which is the full URL of the document. I tried several combinations of HTTP headers, but neither worked. I tried putting an additional GET request parameter at the end of the URL, like ...&filename=filename.pdf , but that didn't work either.
    I tried Adobe 7.0 and 8.1.2.
    Any suggestions ?
    Thanks a lot!

    Thank you very much for your answer.
    Needless to say I tried opening the document in IE, FF and Chrome, and neither worked.
    I had a look at the code at your web site, and saw that you were serving files for direct download: Content-Dispositoin:attachment... .
    This works fine for me too, and the filename is recognized correctly in that case. The problem is, I want to display the PDF inline...
    My server is not configured for URL rewriting, and I would be probably quite some problem to make this app work with it, so the /filename.pdf is not an option for me.
    Edited by: matavulj on Sep 25, 2008 7:21 AM

  • How to invalidate a session explicitly when a browser is closed

    hi,
    i am keeping the information of a logged user when he logs succesfully in a session. the session time is maintained for half an hour.
    i am also storing his information in an application object.
    when a user logs out i am invalidating the session and his information is removed from the application object .
    when a person is logged and another person at other place stries to log in with the same username and password, i am making use of this application object to check whether the anyone is looged in with that user id or not. if the id aleady exists in the application object i will not allow the second person to log in and i will provide with a relavent mesasge " already logged in with this ID".
    But the problem is arising when a person loogs in and closes the browser (wth out looging in).
    in this case the session is not invalidated and his information remains in the session and application object.
    when he tries to loog in immediatly after closing the browser, the same checking is done for the duplicate log in and a message is displayed to him saying that " already logged in with this ID".
    he has to wait till the session expires (i,e till 30 min) and then log in
    As this creates problem, i want to invalidate the session the time when the browser is closed.
    i tried with the onUnLoad() methos in javascript, but that method is not only called when closing the browser but also when a link is clicked ot when refreshed the page.
    i am trying with Cookies but i am not gettin ga good approach as how to go forward with this problem.
    Any body who can solve this please....reply soon or mail me
    Its very Urgent................
    Thanks
    sowjanya

    2.Any business critical web site should not allow
    multiple users to
    work under same account at same time.Not true. My customer's web site is "business critical" and they explicitly wanted to be able to login multiple times with the same ID. At least in this scenario we completely circumvent your problem.
    The Javascript solution will never be 100%. What happens if their internet connection drops and doesn't come back? Suppose their OS crashes? What if their power goes out? What if IE crashes? What if JS is turned off? What if the user just walks away and leaves the browser open forever?
    You may be trying to get too much control, which on the web always leads to failure. Maybe a better alternative would be to warn the user that is logging in the second time that there is an outstanding login and that the previous user will be logged out if he proceeds. Then, keep a record of the event in case someone is messing with other accounts (although, since he obviously knows the username and password it is probably a user concern.)

  • How can I download a .pdf document from a web link without Adobe Reader starting automatically and i

         How can I download a .pdf document from a web link without Adobe Reader starting automatically and preempting the download?                         

    That depends on your operating system and browser.  On Windows, e.g. using Firefox, you right-click on the link, then select 'Save link as...'.

  • How do I close a PDF doc on my iPad? Thanks

    How do I close a PDF on the iPad?

    Since Adobe Reader 10.3 can only open one PDF at a time, you can simply return to the Documents view by clicking Documents at the upper left. (If you have created folders and your PDF is in a folder, click the name of the folder at the upper left. Then, click the link to the Documents view.)

Maybe you are looking for

  • Report background engine not generated

    Hi Friends, I have installed Developer 6i -Forms and Reports. When I try to run a report in an aplication after giving parameters in the paraform it gives an error illegal operation for rwbe60 it doesn't generate the background engine and so the repo

  • After upgrading Lightroom on a mac. Deleting the older version along with old catalogs and files?

    Can I delete the older version along with old catalogs and files? and what is the best way to go about this? Thankyou : )

  • Command UI?

    HI, I am trying to edit a command, UINewFIleCommand.class. the intention is when the user clicks on this command, it should open the corresponding Portal Component in a new window? but i dont know where should i do this simple thing in the code as sh

  • X-Rite's ColorChecker Passport with Aperture

    I would like to use X-Rite's ColorChecker Passport with Aperture. Is anybody aware whether Apple's Tech people are talking to X-Rite to enable using both together? 

  • SQL*PLUS & SQLPLUS WORKSHEET

    I downloaded oracle 8i personal from the web and installation was OK. I am a novice and I tried the following:- scott/tiger scott/oracle system/manager sys/change_on_install demo/demo po8i/po8i sysman/oem_temp So far unsuccessful. Don't know why Orac