WSRP: Cookies and setting preferredTitle

When changing the preferred Title is seems there must be a cookie set. initCookie is set to none for the example portlet (Form Submission Portlet). Am I just calling in wrong or could this be a bug with the oracle implementation. If I first post the values (name and age) to the form that sets the cookie JSESSION, if this is not done prior to that the render fails with invalid handle. Even though it is the handle returned by the performBlocking. Therefore it seems the handle is only good if the cookie is set.
Thanks
Mike

@Davelaws
What’s the reason with adding the period at the start of
mysite.com?
The
documentation
on cfcookie says so. I suppose it has to do with how Coldfusion
extracts the domain name from subdomains like warehouse.mysite.com,
accounts.mysite.com, personnel.mysite.com, and so on.
Here's something else you might wish to know. I saved the
following version of your code as
firefoxCookieTest.cfm.
<cfif isDefined("COOKIE.cookieIsLive")>
<cfoutput>COOKIE.cookieIsLive=#COOKIE.cookieIsLive#</cfoutput>
<cfelse>
COOKIE.cookieIsLive=NOT DEFINED
</cfif>
<cfcookie value="#now()#" name="cookieIsLive">
Open the page for the first time in Firefox 3.0.5, and you
will get:
COOKIE.cookieIsLive=NOT DEFINED
Refresh the page, and you will get something like:
COOKIE.cookieIsLive={ts '2008-12-27 04:59:53'}
Then close and re-open Firefox. When you run the page, you
will get:
COOKIE.cookieIsLive=NOT DEFINED as before.
With the page still open, follow the menu
Tools => Options => Privacy(tab) => Show
Cookies(button). Locate the domain from the list of sites.
Click on the + symbol to expand. You will see that the cookie file
is still there, even though Coldfusion doesn't currently have the
cookie in memory.

Similar Messages

  • Acess "set-cookie" and set later in lookup in UDF?

    Hello Experts,
    I' have a senario where I need to get a session ID in order to handle a series of web service request. Therefore I have written a UDF in the mapping where the first method (as login message) where I get a login key as payload and the session-id in the response header. This session Id then needs to be set before several other calls within the same udf are made to the webservice. We are not able to use the Axis-adapter and therefore have to use the normal SOAP-adapter.
    My question now is, is there any way to access the header of the first response message? I need to read the returned session-id and then write it to the other requests. Any idea?
    regards
    Christian

    Hi Mark,
    for sure I can post the UDF. This UDF that I have written is a generic UDF that I call from several other UDF's where ever I need to create a lookup:
    AbstractTrace trace = container.getTrace();
    String returnValue = "";
    try {
      Channel channel =  LookupService.getChannel(party,communicationComponent, communicationChannel);
      SystemAccessor accessor = LookupService.getSystemAccessor(channel);     
      InputStream inputStream = new ByteArrayInputStream(requestXMLString.getBytes());
      XmlPayload payload = LookupService.getXmlPayload(inputStream);
      Payload SOAPOutPayload = null;  
      /*The SOAP call is made here and the response obtained is in the SOAPOutPayload.*/     
      SOAPOutPayload = accessor.call(payload);   
      /* Parsing the Returnvalue     */
      InputStream inp = SOAPOutPayload.getContent();     
      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();   
      /* Build DOM Structure for Input XML */     
      DocumentBuilder builder = factory.newDocumentBuilder();     
      Document document = builder.parse(inp);  
      /* Set the XML-Tag for the Response  */     
      NodeList list = document.getElementsByTagName(requestXMLValueTag);
      Node node = list.item(0);     
      if (node != null)
       node = node.getFirstChild();
       if (node != null)
        returnValue = node.getNodeValue();          
    } catch (Exception e)
      trace.addWarning("Error" + e);
    return returnValue;
    So within this function I need to access the set-cookie and then set it accordingly. If have you have any suggestions I'm very happy to hear about it.
    I don't think that I can use your link that you posted as I don't have a URLConnection-Object
    Can you show us your UDF? Maybe this blog can help:
    Simple Way to Get HTTP Response Header in Java • Crunchify
    regards
    Christian

  • The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)

    The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)  Do you know where I go to change the setting to allow me to "always allow" cookies?

    Hi lisaarnett111,
    If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
    Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • How do I get and set cookies with JSF?

    How do I get and set cookies in a JSF managed bean?
    Regards,
    Al Malin

    Below is how I did it...I am receptive to improvements.
    FacesContext facesContext = FacesContext.getCurrentInstance();
    HttpSession session = (HttpSession)facesContext.getExternalContext().getSession(false);
    HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
    HttpServletResponse response = (HttpServletResponse)facesContext.getExternalContext().getResponse();
    String cookieName = "myCookieName";
    Cookie requestCookie = null;
    Cookie[] cookies = request.getCookies();
    logger.info("looking for cookie...");
    if (cookies != null)
    for (int i = 0; i < cookies.length; i++)
    if (cookies.getName().equals(cookieName))
    requestCookie = cookies[i];
    logger.info(cookieName + " = " + requestCookie.getValue());
    logger.info("done looking for cookie");
    Cookie responseCookie = new Cookie(cookieName, "myCookieValue");
    responseCookie.setPath("/");
    response.addCookie(responseCookie);

  • Safari allows 3rd party cookies and all cookies even when prefernces are set to "never allow" with Mac os 10.6.8

    safari ALWAYS allows 3rd party cookies and all cookies even when set to "block cookies: always" and "from 3rd party and advertisers."  I have removed the website data, emptied the cache, reset safari, erased the history and it STILL dumps cookies.  (For example, if I go to the usgov weather website only I end up with 11 cookies, the top one being "addthis.com" listed as cashed in local storage.  But didn't I just empty the cache... multiple times??? Is my Safari application "broken" or "corrupt."  Can the application be renewed so that it actually does what it is commanded to do?

    Not using any extensions, Andy.
    Allowed a guest account and tested that.  Lots of cache/cookies showed up for my "guest" that on face value, appeared 3rd party:  the familiar "addthis.com" cache and others including a facebook cache and I did not, nor have ever, participated in facebook. But it could be that the "trusted" site my virtual guest visited had a relationship with facebook such that my COMPUTER "friended" facebook even though my guest and I most certainly would have declined the invitation :-)  But what I really don't get is why washington post cookies keep showing up every single time.  Isn't that the absolute definition of 3rd party cookies?!
    forgive my rant.
    On the other hand, when I logged out as guest, all data was automatically deleted, and when I relogged in as guest, it appeared that all the data, including cached data, had indeed been deleted.  But when I relogged in as myself, the same old garbage reappeared in the cache and cookie bin. The fact is, there appears to be no such thing as truly and completely emptying ones cache, resetting ones browser, or deleting ones cookies. They are here to stay.
    (And, oh yes, I have tried logging out, turning off and on the computer right after performing emptying tasks, etc.)

  • Browsing history is set to "delete on exit" from Firefox however cookies and history are still listed in Internet Explorer - which I never use. Why??

    Firefox is set to delete browsing history on exit. Appears to be working fine. However, if I open Internet Explorer - after closing Firefox - my cookies and history are listed in Internet Explorer. I have to go to Tools >Options> Internet History and delete everything manually. (Internet Explorer is also set to delete history on exit.
    Why are my cookies and history being transferred from Firefox to Internet Explorer?

    Thanks cor-el for the reply.
    Do not have any MS plugins that I'm aware of. No Silverlight,etc.
    How can I tell if Windows Media player is plugged in to FF?
    No IE View or IE tab.
    Not a major problem because I can go in and delete manually--minor hassle.
    Have had the same problem across several FF updates. Just curious why this is happening.

  • Question about setting cookies and custom authentication

    I have a question about setting cookies.
    I have two different 'projects' in HTMLDB - we will call them App1 and App2.
    I also have two different connection configurations setup in the DADs.conf file. - we will call them Connect1 and Connect2.
    App1 is setup to use database authentication (no user is specified in the DAD) and uses Connect1. Once the user successfully logs in, we set a username cookie (this is a persistent connection).
    We created a custom authenticatoin scheme for App2 - this scheme checks for the username cookie (set by App1). We would like for App2 to use Connect2 (HTMLDB_PUBLIC_USER is the default user specified and it uses connection pooling).
    Is it possible to set a cookie from App1, Connect1 for App2, Connect2 - then redirect to App2 and pick up that cookie?
    Here is an example of what we are trying to accomplish:
    A user loggs into App1, we set a cookie, and the user is redirected to App2. If the cookie exists, we allow them access to the home page in App2, if no cookie, we redirect back to a 'Login Failed' page in App1. We don't want App2 to use the same database connection as App1 though, we need App2 to use connection pooling.
    Is this possible? OR...Is there a better way to accomplish what we want to do?
    This is an enhancement to an existing app. Our requirements are to use Database Authentication (setup where pass expires after 60 days or so, cannot reuse last 3 passwords, etc.) - which is already setup and being used by other applications in our organization. All of our users have accounts in the database. We don't want users to have a new username/pass - and we don't want to manage a separate group for HTMLDB apps.
    The existing application uses HTMLDB's built in authentication - which uses database username/pass, and it uses connection pooling, but we cannot handle the pass expire stuff in it, unless there's something we're not seeing or understanding - at least that's how our DBA explained it to us.
    Any help with this will be appreciated so much. I can send you the code we have if needed.
    Thanks!

    Same problem here.  I have so many problems with this remote app.  Is there an iTunes API? I would like to write my own remote app that actually works.

  • Cache, cookies and history are not clearing when I close Firefox even though they are set to do so and have been for ages

    I recently had an update (or upgrade?) for FF 16. Today (and I believe the update was done a day or two ago?) my cache, cookies and history are not clearing when I close FF. Also, certain links are not working. Not links for full web pages but for site pop-ups (like the smilie window on a message board). They worked a few days but are not working today. I click the link and nothing happens. I noticed the problem with the cookies not clearing for a few weeks ago but it was only on one site not all sites which is what's happening now.
    My apologies if that's a little confusing. Thanks!

    At any rate, have you tried running Firefox in Private Browsing mode? This will ensure that no infromation from your session is saved once you exit Private Browsing mode and/or exit Firefox.
    You can set Firefox to always start in Private Browsing mode: https://support.mozilla.org/en-US/kb/private-browsing-browse-web-without-saving-info#w_how-do-i-always-start-firefox-in-private-browsing

  • I have firefox set to delete personal information (log in to websites) when I close it ... However firefox isntead doesn't delete anything, keeps the cookies, and when I reopen firefox I'm still logged in (to websites like facebook). What do?

    Pretty much this: I have firefox set to delete personal information (log in to websites) when I close it ... However firefox instead doesn't delete anything, keeps the cookies, and when I reopen firefox I'm still logged in (to websites like facebook). What do?
    Privacy settings aren't working even though they're all appropriately checked off.
    I think Firefox is saving cookies??

    Let all cookies expire when you close Firefox.
    * Tools > Options > Privacy > Cookies: "Keep until": "I close Firefox"
    Make an Allow exception for the ones that you want to keep.
    * Tools > Options > Privacy > Cookies: "Exceptions"
    You can inspect and modify the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    Make sure that you do not use "Clear Recent History" to clear the "Cookies" and the "Site Preferences" (Site Preferences includes the cookie exceptions)
    * https://support.mozilla.com/kb/Clear+Recent+History
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception.
    See also:
    * https://support.mozilla.com/kb/Cookies
    * https://support.mozilla.com/kb/Enabling+and+disabling+cookies

  • If the setting is "never remember history", and user clear the caches/cookies and logs on a website will the previous setting of the user on the web app persis

    ON the firefox, the setting is set to "Never remember history" .
    I have a web site which sets the default value on the record per page dropdown list to 100 for every tab.
    When I change the value to 5 and then logout. clear the caches/cookies . and then reload the page and then login to the website the value is showing as 5? why is it so? since the default value of the dropdown on fress login should be displayed as 100. I am facing this issue in Firefox 20.0.1 and on Internet explorer its working fine, the default value of the drop down is showing up as "100" . Let me know what behavior is expected on firefox on the above mentioned issue. This relates to firefox browser only.

    Are you sure the setting is stored in an HTTP cookie (regular browser cookie), and not on the server or in some other kind of local storage (e.g., Flash LSO)?

  • Why won't the "block cookies and other website data" setting work on Safari 7.0.2?

    Why doesn't the "block cookies and other website data" setting on Safari 7.0.2 work?  Everytime I try this setting, I still get cookies and other data that needs to be deleted from my computer.

    This has been the case for sometime.
    There is no effective way to block these cookies.
    Try this, may help.
    Safari > Preferences > Security > Cookies and other website data:
    Press "Remove All Other Website Data:'
    Do this twice.
    Select "Reset Safari" from Safari drop down menu.
    Select only "Reset all website data".
    Click "Reset".

  • Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to reset safari but the problem persists.  How can make safari Never accept cookies.

    I'm having a problem with cookies on Safari.
    Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to Reseting Safari several time but the problem persists.  This is occurring under two different user logins one of whom is an administrator the other a standard user.  How can I get safari to Never accept cookies?  This is a recent problem because in the past it used to work properly. Any idea what might be going on here?

    Hi David:
    I did read (yesterday in another thread) about a similar problem.  I cannot test it myself as I accept cookies (from sites I visit) and do not want to delete all of mine for a test.
    I do not know whether it meets your requirements, but you could turn on private browsing.  I use that (or Microsoft's variant on IE) when I use public computers.
    Barry

  • SSO logout not working properly (cookie remains set)

    Hi, I've just implemented single sign-on authentication for my APEX 2.2 applications with help of these two howtos:
    http://www.oracle.com/technology/products/database/application_express/howtos/sso_partner_app.html#INSTALL
    http://becomeappsdba.blogspot.com/2007/01/apex-apps-configure-sso-ii.html
    It quite works smoothly, e.g. for pages that require authentication the user is redirected
    ("Redirecting to the Login Server for authentication...") to the SSO server (another machine, a part of Oracle Collaboration Suite infrastructure). There on the login screen, the user enters the credentials and after submit (if the credentials are OK) is redirected back to the APEX application as an authenticated user.
    When the user clicks "Logout", the application redirects him (her) to the page specified in the "Logout URL" attribute of the SSO authentication scheme and the displayed username changes to "nobody". So far so good.
    However, the problem is that the user is in fact not logged out. On a subsequent attempt to get to an authenticated page within the same browser window the application displays for a short while "Redirecting to the Login Server for authentication..." but it doesn't really get the user to the SSO logon screen to enter username and password and instead it redirects him (her) directly to the required page as the previously authenticated user (the user who clicked the "Logout" sign). The only workaround is to close the browser window and start over again as the other user, which is not very convenient nor secure. It seems that despite the seeming logout the cookie remains set and I don't how to force the application to get rid of the cookie upon logout.
    Has anybody faced this behaviour and has some assistance for me?
    Thanks in advance.
    Zdenek

    Scott,
    thank you very much for your prompt explanation and pointing to the right thread. There, I was able to quickly find what I was looking for - the logout URL:
    https://host:port/pls/DAD/wwv_flow_custom_auth_std.logout_then_go_to_url?p_args=&APP_ID.:https://login.yourlogin.com/pls/orasso/orasso.wwsso_app_admin.ls_logout?p_done_url=https://host:port/pls/DAD/f?p=&APP_ID.:PUBLIC_PAGE
    Having that, it took me just 5 minutes to adopt it to my conditions (change machine names & page number), paste it to the SSO authentication scheme's logout URL field and sucessfully test it.
    To summarize for others in need, these are relevant links to this topic:
    Re: Partner Application in SSO logout does'nt synchronize
    SSO authentication
    Logout URL for 9iAS SSO Partner App
    Thanks again & appologies for asking this question without preceding proper searching for answer in this excelent & useful forum.
    Zdenek

  • Using Quicken to manage a bank account, I get an error message from the bank that cookies and javascript must be enabled, but I don't get that message when I connect with Internet Explorer.

    Firefox allows me to get the bank home page through Quicken. But when I try to login, the error message appears saying "cookies and javascript" must be enabled. I have Java on my system, but in Firefox under "tools/options/ I don't find any way to "enable" javascript. I have enabled "cookies".
    I have no problem logging in at the bank site using Internet Explorer, but to use it, I have to designate it as the "default browser" before connecting through Quicken. I'd rather keep Firefox as the default.
    A bank tech representative was unable to find any commands in Firefox that would deal with this problem, although she clearly had manuals for both Internet Explorer and Firefox. So she concluded that I would have to use Explorer for this operation, since it allowed control of security level settings. She said that in Explorer, security level should be set to medium.
    Is there some similar control in Firefox?

    Firefox uses the same "security level" setting that is set in IE.
    Tools > Options > '''Content''' <br />
    Is '''Enable Javascript''' check-marked?
    http://kb.mozillazine.org/JavaScript_is_not_Java
    If that doesn't solve your problem, do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Feature Request:  Useful toStrings in Cookie and HttpServletResponse/Reques

    Hi. It seems obvious to me that the Cookie.toString() should give the text representation of the Cookie as it will appear in the HTTP header. The reason that I need this is that Java does NOT support HttpOnly and I need to insert it into the Cookie manually. I can do this somewhat using HttpServletResponse.setHeader(java.lang.String name, java.lang.String value) except that I have a complex application with Cookies being set multiple times and there is no HttpServletResponse.getHeader(java.lang.String name) to allow me to read what'[s in the SET-COOKIE header, dynamically change it and write it back.
    A reasonable implementation of HttpServletResponse.toString would allow me to do what I need to do also, but that alas also just shows the reference.
    HttpOnly will not be the last custom HTTP cookie attribute or HTTP header and Java should give better support for dynamically managing HTTP headers.
    I think that toStrings are a great idea, but it seems that as a general rule, useful toStrings have not been implemented in the Java libraries.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I would post the request here:
    http://bugs.archlinux.org/

Maybe you are looking for

  • Help, safari crashed every time I open it

    After a recent reinstall of the Lion OS on my macbook pro, the safari just crashed every time I open it. I've tried to change the login account, but the same problem remains. The error log is as follows: Process:         Safari [861] Path:           

  • Can't boot my T500 anymore... just getting to a black screen after the XP logo

    I have a big problem with my Lenovo T500. Never had any problems before. Then yesterday, I could not open OpenOffice anymore, neither convert to pdf from an already open OpenOffice document. I got error messages saying the programmes can't be openend

  • Printing in 2-color + upgrade problems

    My company just recently upgraded systems, going from CS to CS 6, and a 10 year old mac to a new PC. Quite a leep. The prolem is, there was a program called Creo's "PowerTone" and it was a plugin for Photoshop which took full color images and made a

  • Where with images

    I need place images of own buttons into apex 2.2. Probably I place them into database as blob. I have a question. Is it possible to make it better?

  • I have paid for an album, and now it won't appear in my music.

    I can confirm that the songs themselves will play in itunes. And the songs are definitely on my computer now. But for some reason, the album refuses to appear in my album list. Which is ridiculous. Even when I manually add the songs, the album, the a