Unable to delete JSESSIONID cookie from ADF application

Hi all
I have a ADF application where i am using Logout button with action in managed bean. I want to delete the JSESSIONID cookie after logout.
The logout bean is invalding the session and deleting the cookies. See code below.
However code is not deleting the JSESSIONID cookie. I can see the cookie still exist in browser. Tester can use "back" button of browser and can see the user is still logged in application.
How can delete JESSIONID cookie permanetly after logout action ? Am i missing some thing in code ? I am uing JDeveloper 11.1.1.5.0
Mukesh
=======
public String AfterLogOut_action() {
FacesContext fctx = FacesContext.getCurrentInstance();
ExternalContext ectx = fctx.getExternalContext();
String url = ectx.getRequestContextPath() + "/adfAuthentication?logout=true&end_url=/login.html";
HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
HttpSession session = (HttpSession)ectx.getSession(false);
// Step 1 : delete the cookies
if (request.getCookies() != null) {    
for (Cookie cookie : request.getCookies()) {
cookie.setMaxAge(0);
cookie.setPath("/");
response.addCookie(cookie);
// Step 2 : Invalidate the session
try {
session.invalidate();
ectx.redirect(url);
} catch (IOException e) {
e.printStackTrace();
fctx.responseComplete();
return null;
==========
Edited by: Mukesh S Patil on May 11, 2013 5:44 PM

Hi Guys.
Any help ?
Mukesh

Similar Messages

  • I am unable to delete whole texts from left-swipe. i click delete and they dissappear. But then i can't send or recieve texts. i reboot phone and deleted message reappear. i've synced, backup, everything. Help!

    I am unable to delete whole texts from left-swipe. i click delete and they dissappear. But then i can't send or recieve texts. i reboot phone and deleted message reappear, but i am able to continue send/recieving texts.. i've synced, backup, everything. Help! I am doing this beacuse in my space on my phone my doucments and data are taking up 9GB of space, and i don't know why other than in my phone it says messages are taking up 8GB or so. I am running ios 7.0. I have synced my phone with itunes, backed up, reboots after deleting the texts, they never vanish, i have even restored from itunes and restored from a backup that didn't include the texts after i deleted them.

    actually better to reset your phone and reinstall the latest firmware again after that restore your back up it should be ok

  • Unable to delete an email from a Gmail account in Mail

    I am unable to delete an email from my Gmail (IMAP) account within Mail on my MacBook. I get an error message that says there are no matches with the email. It does not show in Mail on my iMac or on my Gmail account online. I have rebuilt the mailbox, but don't know any other steps to try to fix this problem.
    Does anyone know how to delete this email?
    Thanks -
    Dudley Warner

    ibosie /V.K. -
    Thanks for the suggestions. I did not find the message on my Gmail Internet account. I went into Mail Preferences, and used the Advanced tab under my Gmail account to uncheck "Enable this account". The account folders disappeared. When I restarted Mail and enabled Gmail again, the email was initially gone, but a few minutes later, reappeared. I don't know anything else left to do except delete the account and recreate it If you think of anything else, please let me know.
    Thanks -
    Dudley

  • How to delete multiple rows from ADF table

    How to delete multiple rows from ADF table

    Hi,
    best practices when deleting multiple rows is to do this on the business service, not the view layer for performance reasons. When you selected the rows to delete and press submit, then in a managed bean you access thetable instance (put a reference to a managed bean from the table "binding" property") and call getSeletedRowKeys. In JDeveloper 11g, ADF Faces returns the RowKeySet as a Set of List, where each list conatins the server side row key (e.g. oracle.jbo.Key) if you use ADF BC. Then you create a List (ArrayList) with this keys in it and call a method exposed on the business service (through a method activity in ADF) and pass the list as an argument. On the server side you then access the View Object that holds the data and find the row to delte by the keys in the list
    Example 134 here: http://blogs.oracle.com/smuenchadf/examples/#134 provides you with the code
    Frank

  • How to call OWSM secured web-service from ADF application

    I have a OWSM secured web-service, which takes username/password.
    I want to invoke this webservice from ADF application. ADF application has its own security and it takes its own username/password. End user can't provide the username/password for web-service call. My ADF application should call the webservice and provide it appropriate username/password.
    What is the best practice to handle such scenario. I don't want to hardcode username/password in Java (ADF) code.
    Thanks
    Sanjeev.

    it is not clear to me if you are having problems with calling java code from OIM or if the problem is the web service API.
    Lets do some divide and conquer:
    Can you create a simple java class that just writes a couple of lines to the log? Please attach this code to the OIM task and make sure it runs.
    Once this works we can start looking at the web service call.
    Best regards
    /Martin

  • Calling PL/SQL Functions And Open Oracle Reports From ADF Application

    Hi all,
    My company will convert some projects from Oracle forms to Oracle ADF so, we need to call the PL/SQL functions and open the Oracle Reports (which are already exist) from ADF Application.
    Thank You..
    Jack.N

    Hi Jack.N,
    calling PL/SQL Functions -----> http://sameh-nassar.blogspot.com/2010/01/create-plsql-function-and-call-it-from.html
    Open Oracle Reports ---------> http://radio-weblogs.com/0137094/2008/06/15.html
    You will find The Integration between ADF and other systems in ---> http://wiki.oracle.com/page/ADF+Integration
    Sameh Nassar

  • I am unable to delete my emails from yahoo after I have read them.  I can check an email and press delete but the email remains and I am collecting a lot.  what should I do?

    I am unable to delete my emails from yahoo after I have read them.  What should I be doing to correct this problem?

    marjoriefrommm,
    First go to mail preferences>accounts>mailbox behavior and under trash click "move deleted messages to the trash mailbox, the delete them from there.
    Also got to your Yahoo mail and check your settings there.

  • WebCenter Content Check In Form - CHECKIN_NEW_FORM from ADF Application

    Hi,
    How can I get the webcenter content checkin form to pop up on request from my adf application.? This is an urgent requirement.
    Thank You

    Hi Raj,
    We are running on JDeveloper PS5.
    That blog looks like its a Webcenter Portal Tutorial.
    To Simplify our use case, say you have
    a standard adf application
    With a jspx and a command button.
    Requirement:
    When a user user click on the command button from adf application, the ucm check in page should popup allowing the user to index and check in content.
    We thought the CHECKIN_NEW_FORM service is suppose to meet that requirement but we are having a problem putting it all together inside our adf application.
    Please let me know if you need more information

  • Exchange 2013 EAC shows "error Sorry, your request couldn't be completed. Try deleting the cookies from your browser, and then sign in again. If the problem continues, contact your helpdesk."

    Hi,
    My Exchange 2013 Hybrid environment is at CU5 level. Multiple administrators have started experiencing the error message
    "error
    Sorry, your request couldn't be completed. Try deleting the cookies from your browser, and then sign in again. If the problem continues, contact your helpdesk."
    It only started two weeks ago and did not coincide with any infrastructure changes. The message occurs when clicking anything on the EAC GUI and it eventually allows you to perform the operation but only after the message
    pops up a few times.
    I have tried clearing the browser cookies, history, etc. Note that using the Office 365 EAC does not yield the same messages and it only happens in IE (IE 11).
    Thanks.

    Hi,
    From your description, please make sure that the "Require SSL" is checked in IIS Manager -> Sites -> Exchange Back End -> ECP -> SSL Settings.
    What's more, ensure that EAC site is added to the “Compatibility Mode”.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • HT5731 I am unable to delete unwanted songs from my wish list. Does anybody else have this problem and/solution. Thanks

    I am unable to delete unwanted songs from my wish list. Does anybody else have this problem and/solution. Thanks

    I have the same problem, and other people have also posted about it. I assume that there is either a bug with the current version of iTunes and/or that there is a problem at Apple's end

  • How to call oracle reports from ADF application.

    Hi
    I am migrating oracle 11g application to ADF. I would like to call oracle reports from ADF application.

    There is nothing similar to forms-reports integration, but you can invoke rwservlet url.
    Here is sample and utility class: Sameh Nassar: Call Oracle Reports From Your ADF Application
    Dario

  • When I delete a cookie from the "show cookies" window, how can I get that cookie to automatically go to the exeptions list?

    Desired behavior: I used to be able to delete cookies from the "show cookies" window and they would automatically show up in the exceptions list and be blocked in future sessions.
    Undesired behavior: Now, on a new install, I can delete the cookies from the "show cookies" window but they do not show up in the exceptions list.
    ??????? Help?

    See:
    *http://kb.mozillazine.org/network.cookie.blockFutureCookies

  • Unable to recreate JSESSIONID cookie in Internet Explorer

    Hello All,
    (Running  CF Version: 9,0,0,251028,   Windows 2008 Server,  IIS-7)
    I am using the code below to expire the JSESSIONID cookie that is generated by CF because CF does not set the "HTTPOnly" and "Secure" cookie attributes by default when the JSESSIONID is initially created .  I am then recreating the JSESSIONID cookie with the required attributes.
    This works great for all browsers EXCEPT Internet Explorer!
    When the code below runs in Internet Explorer, the JSESSIONID cookie does become expired as it should as seen in the 1st line of the function below.  However, The script after that fails to recreate the JSESSIONID in Internet Explorer.  this is driving me nuts because it works like a charm in ALL other browsers.
    I am aware of the solution which involves setting these attributes in an xml configuration file on the CF server.  However that solution is not an option for me.  I am forced to use the method below to setup my secure/httponly JSESSIONID cookie.  Any ideas would be greatly appreciated!!!
    <cffunction name="OnSessionStart" output="false" access="public" description="I fix the sessionid">  
             <cfcookie name="JSESSIONID" expires="now"/>              
           <cfscript> 
              var.HTTPOnly = "HTTPOnly";
              var.domain = cgi.server_name;       
              var.path = "/";
              var.secure = "Secure;";                         
              var.response = getPageContext().getResponse();              
              var.header = "JSESSIONID" & "=" & session.sessionid & ";domain=." & var.domain & ";path=" & var.path & ";" & var.secure & var.HTTPOnly;
              var.response.setHeader("SET-COOKIE", var.header);             
            </cfscript>       
            <cfreturn />
      </cffunction>

    Below is the responseHeader dump (from IE9).
    Looks the exact same in FireFox and Chrome.  However,  a cfdump of the cookie scope will reveal (JSESSIONID=), nothing, zip, zilch, nada in IE9. Since the JSESSIONID cookie value is empty or null, a login attempt will result in a flash of the screen and the user is never logged in.
    While a cfdump of Firefox and Chrome happily display a valid JSESSIONID cookie value and allow users to login to my application just fine.
    (Note:  The secure attribute is intentionally turned off due to my non-ssl dev pc.)
    Cache-Control
    no-cache, no-store, must-revalidate
    Connection
    close
    Content-Type
    text/html; charset=UTF-8
    Date
    Sat, 10 Sep 2011 19:35:08 GMT
    Explanation
    OK
    Http_Version
    HTTP/1.0
    SET-COOKIE
    struct
    1
    JSESSIONID=843032102a51ca7bfa0f60831221c8642e45;domain=.localhost;path=/;HTTPOnly
    2
    JSESSIONID=843032102a51ca7bfa0f60831221c8642e45;path=/
    3
    JSESSIONID=;expires=Fri, 10-Sep-2010 19:35:08 GMT;path=/
    Server
    JRun Web Server
    Status_Code
    200
    X-Frame-Options
    deny
    X-XSS-Protection
    1; mode=block
    expires
    {ts '2011-09-10 15:35:08'}
    pragma
    no-cache
    Thanks for the help!
    Neil

  • Fill out a pdf form from ADF application

    Hi
    I need to fill out a PDF form, from my ADF application and i want to know if exist a component or libarary to do this.
    i hope you can help me
    Regards.

    Hi,
    two options are:
    Oracle BI Publisher (by far best choice but needs to be licenced)
    http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html
    Jasper Reports, Free but not as functional or easy to use as BIP
    http://jasperforge.org/projects/jasperreports
    Both products have Java API's which you can integrate with your application.
    Brenden

  • Unable to delete double records from internal table

    Hi all,
    The internal table is like this
    begin of ta_itab1 occurs 0,
          mark type c,
          cnt_hedg type c,
          kunnr like vbak-kunnr,
          vbeln like vbak-vbeln,
          posnr like vbap-posnr,
          matnr like vbap-matnr,
          kwmeng like vbap-kwmeng,
          h_kwmeng like vbap-kwmeng,
          spart like vbap-spart,
          werks like vbap-werks,
          component like bom_item_api01-component,
          comp_qty like bom_item_api01-comp_qty,
          comp_qty1 like bom_item_api01-comp_qty,
          base_quan like stko_api02-base_quan,
          comp_unit like bom_item_api01-comp_unit,
          base_unit like bom_item_api01-comp_unit,
          bukrs_vf like vbak-bukrs_vf,
          end of ta_itab1.
    and used the sytax:
    sort ta_itab6 by kunnr vbeln.
    DELETE ADJACENT DUPLICATES FROM ta_itab6 comparing COMP_QTY COMP_QTY1.
    but Im unable to delete duplicate record .
    Thank You.
    anu

    Hi ,
    You need to use the fields in sort statement on whichyiu wnat to perform Delete Adjacent duplicates..
    sort ta_itab6 by kunnr vbeln COMP_QTY COMP_QTY1.
    DELETE ADJACENT DUPLICATES FROM ta_itab6 comparing COMP_QTY COMP_QTY1.

Maybe you are looking for

  • How can I download ios7 in my ipad

    I  would like to download ios7 in my ipad so please u help me to download ios7 I am really thankfull to u

  • Pack200 problems

    Has anyone ever had any troubles with the pack200 tools bundled with the jdk? I've recently run into an issue where packing a jar file with the -E9 flag (Use maximum effort for compression) fails (more specifically the follow up unpacking does "bad r

  • Why do i never have service anywhere and my phone always needs restoring?

    Someone please help. My phone hardly ever works. It never has service. Sometimes, I will turn it off and back on, and I might get lucky enough for it to have service. It tells me daily "Iphone cannot make or recieve calls. Iphone needs to be restored

  • Storing video clips in iPhoto

    I'm new to the Mac world, so pardon my ignorance.. I have about 250 video clips that I've taken on my digital camera that I currently have stored in iPhoto. I recently purchased an Apple TV to view photos and videos on my TV. In order to view the vid

  • Sending to STP from FCP

    Hi all... I'm sure this question has been asked, I just can't find it in the archives. I have an interview that's been chopped up and edited in FCP5.1 I select the entire sequence and send it to STP for sweetening (I just want to mess with the Compre