XSQL set-cookie

When I write an XSQL cookie, it won't actually do it until i refresh the login screen, i.e.:
1) Enter username and password into XHTML page
2) Post to auth.xsql
3) auth.xsql reads the username and password and authenticates
4) all user information for that username and password is pulled out of the database
5) attempt at writing cookie fails.
6) when i refresh the page, the cookie then has a value and shows up.
Why is this? And also, is there any way of deleting the cookie, like with a logout button, using XSQL? Maybe like XSQL:delete-cookie ?
Thanks!
Here's the code:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
<database connection="dvd" xmlns:xsql="urn:oracle-xsql">
<xsql:query id-attribute="" tag-case="lower" rowset-element="allusers" row-element="userinfo" bind-params="username password">
SELECT *
FROM LKUP_USER
WHERE USERNAME = ? AND PASSWORD = ? /* AND ACCESSLEVEL = 1 */
ORDER BY USER_ID
</xsql:query>
<xsql:set-cookie name="authuser" only-if-unset="no" ignore-empty-value="yes" bind-params="username password">
SELECT USERNAME
FROM LKUP_USER
WHERE USERNAME = ? AND PASSWORD = ? /* AND ACCESSLEVEL = 1 */
</xsql:set-cookie>
<xsql:include-request-params/>
</database>--
Malik Graves-Pryor

This the flat XML result when the page is first loaded:
<?xml version="1.0" ?>
- <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
-->
- <database>
- <allusers>
- <userinfo>
<user_id>1</user_id>
<firstname>Malik</firstname>
<lastname>Graves-Pryor</lastname>
<username>malik</username>
<password>malik</password>
<email>[email protected]</email>
<accesslevel>0</accesslevel>
</userinfo>
</allusers>
- <request>
- <parameters>
<password>malik</password>
<username>malik</username>
</parameters>
<session />
<cookies />
</request>
</database>and here is what it looks like when I refresh the page, doing nothing else:
<?xml version="1.0" ?>
- <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
-->
- <database>
- <allusers>
- <userinfo>
<user_id>1</user_id>
<firstname>Malik</firstname>
<lastname>Graves-Pryor</lastname>
<username>malik</username>
<password>malik</password>
<email>[email protected]</email>
<accesslevel>0</accesslevel>
</userinfo>
</allusers>
- <request>
- <parameters>
<password>malik</password>
<username>malik</username>
</parameters>
<session />
- <cookies>
<authuser>malik</authuser>
</cookies>
</request>
</database>As you can see, the cookie "authuser" is written, but only after I refresh the page. Any clues to that, and also how to delete the "authuser" cookie later on using XSQL so that one can log out of the app?
p.s.: Steven, are you going to release an updated "Building Oracle XML Applications" book anytime within the near future, i.e., next 1-3 months?
Malik Graves-Pryor

Similar Messages

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • How to deal with the "Set-Cookie" field in HTTP header??

    I follow the RFC-2616 specification to write a socket program to fetch web pages.
    I have to deal with all the fields included in the HTTP header.
    But the RFC-2616 doesn't talk anything about the "Set-Cookie" field.
    Does anyone know how to handle this field or provide me any useful documentation.
    Any help is appreciated.

    A cookie is set with the "Set-Cookie: "-field in the http header, like this:
    Set-Cookie: mycookie=someValue
    This cookie should only be returned to the same host as it came from, like this in the http header of a request:
    Cookie: mycookie=someValue
    If the parameter looks like this:
    Set-Cookie: mycookie=someValue; path=/cgi-bin
    , the cookie should only be returned to the host if the request path starts with /cgi-bin
    If the parameter looks liek this:
    Set-Cookie: mycookie=someValue; domain=.mydomain.com
    , the cooke should be returned to all hosts in the .mydomain.com-domain
    There is also a "expires="-field, which works as expected and a "secure"-field, which I'm not sure how to handle. Maybe the cookie should only be sent to an SSL-enabled host?
    Hope this helps you. Bye,
    Dag W.

  • HT1677 In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    In safari browser cookies is working fine. But when I add the browser url to the screen then the cookies concept is not working. In safari setting cookies is always open only. Can you please provide any information regarding to this?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Setting cookies in a webservice doesn't work

    I am using a ColdFusion component to publish a web service
    and I want that web service to set a cookie. However, this does not
    appear to always work.
    Specifically, if I invoke the web service from the browser by
    entering a URL such as "service.cfc?method=name" in the address
    bar, then the cookie is set properly. If I use <cfinvoke> the
    cookie is not set. If I use the EasySoap C++ library then the
    cookie is set if I use <cfheader> to set it, but is not set
    if I use <cfcookie>.
    Please see the attached code samples. "cookies.cfc" is the
    component used to publish the web service, "cookies.cfm" is a
    simple test programme which invokes the web service either using
    <cfinvoke> or with the web browser (the second time you
    invoke the web service you should see that the cookies were set the
    last time you invoked it, but this only happens if you invoke it
    using the browser. A simple C++ programme to invoke the web service
    (using EasySoap, which in turn uses WinInet) returns
    "Cookie.EchoLast_2=99" meaning that only cookies set using
    <cfheader> are actually being set.
    Please explain what on earth it is doing and what is the
    correct/approved way of setting cookies in a web service.
    Thanks!

    quote:
    Originally posted by:
    MartinW-2006
    Any suggestions? AM I right in presuming this is a bug?
    Start by ensuring that your function actually runs when you
    invoke it. Does anything get returned to your calling template?

  • 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);

  • How to  get rid of "Content-type: text/html; charset=UTF-8 Set-Cookie..." ?

    Hi
    I have several applications and I am working on making some kind of APEX "SSO".
    An user is authentified in one application. Then he may go to another application. The cookie has the same name from one application to another. The session ID is preserved from one application to another : i use this kind of URL : "f?p=109:1:&SESSION.:"
    I have seen that I need to authentify automatically the user when he swap to another application. For that i have a process in the welcome page that authentify the user, using the :app_user and the password, a PL/SQL after header:
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :APP_USER,
        P_PASSWORD    => :P1_PASSWORD,
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':1'
        );So far so good. User is authenticated. The problem I face is that this message appears :
    Content-type: text/html; charset=UTF-8 Set-Cookie: TELEGESTION_AUTH=-1; path=/; Location: /pls/apex/f?p=109:1How to get rid of this message ?
    Thank you for your kind help !
    Christian
    PS: My question has not been answered... I hope somebody could help me on this topic.
    Edited by: Christian from France on Mar 4, 2010 2:02 AM

    Hi
    Have you tried using "f?p=109:1:&APP_SESSION.:" instead of "f?p=109:1:&SESSION.:".
    I don't see why you need to reauthenticate if they're in the same workspace?
    Cheers
    Ben

  • Getting "Set-Cookie" from response message

    Hello XI SDN'ers,
    I am calling an external webservice through my "SOAP (Axis)" adapter and I am getting the response. The response header looks like this:
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5
    Set-Cookie: JSESSIONID=4DF8F0B8FAF5A1F2D7EE6A0110A33E70; Path=/
    Content-Type: text/xml;charset=utf-8
    Date: Mon, 26 May 2008 10:07:58 GMT
    Connection: close
    I want to get this "Set-Cookie" from my initial "Login" response and set the cookie in further "Synchronous Request" so that I won't loose my sessions.
    so I wrote my UDF to get this SetCookie:
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    paramNamespace, paramName);
    String value = conf.get(key);
    return myString;
    but I am getting "Null" value.
    Please correct me to get "Set Cookie" value from my response!
    Thanks & Regards,
    Satish.

    Hi,
    Check this URL for more clarification:
    help.sap.com/saphelp_nw70/helpdata/en/a6/10b98ae47ef14799a918db66ee9477/content.htm - 34k
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b092777b-ee47-2a10-17b3-c5f59380957f
    Thanks,
    Boopathi

  • Set Cookie in ASP  & Read in WebDynpro

    Hi All,
    I have button "Signature" in Webdynpro screen, when click that button i am calling URL iview (..\Simple.aspx ) & it opens and show in new window. Now i wanted to set cookie in ASPx file and read the same in Webdynpro screen. In the Webdynpro I am not able to read the cookie which was set in aspx file. In the aspx file I am able to see 4 portal cookies when call alert(document.cookie );.  I am able to read 4 portal cookies even in the webdynpros but not my custom cookies ( by aspx file )
    Here is my Code:
    Java script code in ASPX file:
    function setCookie()
    {      window.document.cookie= "SIGN2=RAMANA";              
         alert(document.cookie);
    <input type=button value="Set Cookie" onClick="setCookie()">
    Code in WebDynpro:
              //HttpServletRequest req =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
            Cookie[] cookies = TaskBinder.getCurrentTask().getWebContextAdapter().getHttpServletRequest().getCookies();          
              IWDMessageManager msgmgr = wdComponentAPI.getMessageManager();
              int len = cookies.length;
              for ( int j =0 ; j<len; j++)      
                 msgmgr.reportSuccess(cookies[j].getName() + ":" +cookies[j].getValue());
    I appreciate your help.
    Thanks,
    Ramana.

    Thanks for  your quick response.
    Could You please give me an idea how we can do eventing if applications are running two different windows. I think eveting only works if both iviews are in the same page. Now here iviews are in the same session not in the same page. Please give me a hint how I can write EPCM eveting code in asp file if the eventing works between these screens.
    Regards,
    Ramana.

  • 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.

  • Error setting cookie while login process

    Dear forum users,
    i am getting this error while login into my own application.
    Content-type: text/html; charset=ISO-8859-1 Set-Cookie: DHW_COOKIE=EEDD257F53989F57; path=/; Location: f?p=100:1000:155225166267009
    I am using a process on submit after computation. This process is before the login process.
    10: set Cookie
    20: login
    This source would setting the cookie before login:
    declare
    p_text_raw RAW(128);
    p_key RAW(128) := utl_raw.cast_to_raw('Key88888');
    p_crypto_typ NUMBER := dbms_crypto.des_cbc_pkcs5;
    p_encrypted_raw RAW(2048);
    p_decrypted_raw RAW(2048);
    begin
    -- Benutzername und damit den Cookie-Inhalt verschlüsseln
    p_text_raw := UTL_I18N.STRING_TO_RAW (lower(:P100_USERNAME), 'AL32UTF8');
    p_encrypted_raw := dbms_crypto.encrypt(
    src=> p_text_raw,
    typ => p_crypto_typ,
    key => p_key);
    -- Verschlüsseltes Cookie senden
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    name=>'DHW_COOKIE',
    value=>p_encrypted_raw);
    owa_util.http_header_close;
    exception
    when others then null;
    end;
    Any ideas for this error ?
    regards
    Frank
    Hello community,
    any comments ?
    Edited by: handwerk.net on Dec 16, 2009 7:31 PM

    Here's one more reason why this error occurs in Toad. It is when you have more than one Oracle Client installed on your machine. Even when you select the correct Oracle Home in "Connect Using" field of Toad, you still get this error "Can't initialize OCI. Error -1". So, to solve that you need to go to the installation folder of that Oracle Home (e.g. C:\Oracle\ora92\), then go to the BIN folder. Open Oracle.Key in Notepad and confirm that it is showing Registry entry/path to the correct Oracle Home (e.g. HOME0 or HOME1 or whatever).
    I hope this helps.

  • Xsql:set-session-param

    I experience a problem with exception arising when I try to set session parameter and then to post to a page with insert-request.
    Here is exception message:
    XSQL-018: Unexpected Error Occurred processing stylesheet null
    oracle.xml.parser.v2.XMLDOMException: Node of this type cannot be added.
    at oracle.xml.parser.v2.XMLDocument.checkChildType(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.parser.v2.XMLDocument.appendChild(XMLDocument.java, Compiled Code)
    at oracle.xml.parser.v2.XMLNode.appendChild(XMLNode.java, Compiled Code)
    at oracle.xml.xsql.XSQLStylesheetProcessor.processToDocument(XSQLStylesheetProcessor.java:66)
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:82)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java, Compiled Code)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java, Compiled Code)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    Using 1.0.4.1 production xsql servlet.
    Code to set param:
    <xsql:set-session-param name="issuethesid" value="aaa" only-if-unset="yes"/>
    Code for the page producing error
    <?xml version="1.0"?>
    <!--?xml-stylesheet type="text/xsl" href="coastbasepost.xsl"?-->
    <page connection="coastbase" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-request-params/>
    <xsql:insert-request
    table="domain"
    transform="coastbaseinsert.xsl"/>
    <xsql:set-page-param name="CURRENTID">
    SELECT ID_SEQ.CURRVAL FROM DUAL
    </xsql:set-page-param>
    <xsql:include-param name="CURRENTID"/>
    </page>
    Works everything but insert-request.

    This error usually occurs when your transformation produces an illegal XML fragment.
    If you temporarily rename the transform attribute to transformXXX so that the inbound XSLT transformation is not performed, does the stack trace go away?

  • 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

  • HTTPURLConnection response with multiple Set-Cookie Header key

    I set up a connection to a server and it gives me a response. This response has two header keys but when I loop through like so many reference and how-to sites tell me I only get one and its the last value.
    This is some code that I'm using:
    for (int i=1; (headerName = conn.getHeaderFieldKey(i))!=null; i++) {
         System.out.println(headerName);
         if (headerName.equals("Set-Cookie")) {                 
                     cookie += conn.getHeaderField(i);   }           
         }Has anyone attempted this successfully? This code was copy and pasted from an example claimed to work but I used it myself and it doesn't work.
    This is the response message:
    HTTP/1.1 302 Moved Temporarily
    Date: Mon, 16 Feb 2009 03:47:47 GMT
    Server: Apache
    Set-Cookie: JSESSIONID=E7C54E0ECE8CCFD89EF91FF8A47E34BC; Path=/
    Location: http://<SITEURL>/redirecting.jsp
    Content-Length: 0
    P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE PSA"
    Keep-Alive: timeout=15, max=15
    Connection: Keep-Alive
    Content-Type: text/html;charset=ISO-8859-1
    Set-Cookie: BIGipServerI2O_pool_A=1815557130.20480.0000; path=/

    I just read in the Bug database that this is a JDK 1.4 bug, with no workaround proposed. I am using JDK 1.3.
    Does anyone out there know about a workaround or what other scheme I could use to do the same thing? (For me it's necessary to set at least the User-Agent and the Cookie headers).

  • How to set cookie expire time

    Hi I'm new to jsp,
    please tell anybody, how to set cookie expire time.
    I know about setMaxAge(); but my requirement is set the expire time until close the browser or logout.
    And one more thing is how to delete cookies while logout.
    Thanks in advance
    achchayya.

    Hey,
    I understand what you are trying to say. solution is simple dont set setMaxAge , just create cookie and use it. It will be valid till you close the browser.
    Regards,
    SRI

Maybe you are looking for