How to delete server side cookie

Hy ppl.
i would like to know how i can get rid of server side cookies which date is in the past?
I've trie it with
call method cl_bsp_server_side_cookie=>DELETE_SERVER_COOKIE
but the there was no result

hi
good
Class CL_BSP_SERVER_SIDE_COOKIE provides methods for setting, getting, deleting, and managing cookies on the server.
Server-side cookies are persistent data, similar to the usual client-side cookies. However, while on the client-side, there are restrictions that limit the size of cookies to around 4 kilobytes per cookie, the number of cookies to 300 in total and 20 per server or domain, server-side cookies are subject to no such restrictions. A server-side cookie is stored on the database.
For technical reasons, each individual cookie can be stored in one of the following ways:
as a field or
as a structure or
as an internal table
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/31b97b35a111d5992100508b6b8b11/content.htm
thanks
mrutyun^

Similar Messages

  • Stateless - server side cookies

    Hello,
    I am having 2 problems in my stateless MVC BSP application.
    1. I am setting and getting table values using server side cookies. In page 1 - I am setting values in cookie. its not accessible in page 2 but they are accesible in page 3.
    2. When the application is closed by closing the IE, the server side cookies are in the server. How can I delete server side cookies if the application is closed? is it possible at all??
    3. I used delete server cookies - How can I delete cookies that were left undeleted due to the previous point - closing the application as such???
    I tried using session id as static and also sy-uname.....but the Id's stored in sscookie table have dynamic session ids.
    Please suggest..
    Thanks
    Thilothama

    hi
    good
    go through these links which give you idea about deleting the server side cookies.
    http://wp.netscape.com/newsref/std/cookie_spec.html
    http://curl.haxx.se/rfc/cookie_spec.html
    in sap->
    http://help.sap.com/saphelp_nw04s/helpdata/en/bd/4cd23a09313b37e10000000a11405a/content.htm
    thanks
    mrutyun

  • [ Server Side Cookie ] Browser blocked all cookie.

    Hi,
    I use server side cookie to pass value between two pages.
    But if I blocked all cookie in my broswer setting, and the server cookie doesn't work.
    How could I pass value in this condition?
    Thank you!

    Hi Eason,
    that's not possible: client settings cannot block the server side cookie.
    Let's assume this coding in the OnInputprocessing at page A:
      username = sy-uname.
      TRANSLATE username TO LOWER CASE.
    Store.
      cl_bsp_server_side_cookie=>set_server_cookie( name                  = 'SEARCH'
                                                      application_name      = runtime->application_name
                                                      application_namespace = runtime->application_namespace
                                                      username              = username
                                                      session_id            = runtime->session_id
                                                      data_name             = 'FOUNDS'
                                                      data_value            = founds
                                                      expiry_time_rel       = '600' ).
    This defines a ssc (server side cookie).
    You can show cookies via report BSP_SHOW_SERVER_COOKIES.
    On page B (the successor of A) you can get the content via:
        CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
          EXPORTING
            name                  = 'SEARCH'
            application_name      = runtime->application_name
            application_namespace = runtime->application_namespace
            username              = username
            session_id            = runtime->session_id
            data_name             = 'FOUNDS'
          CHANGING
            data_value            = founds.
    Try this.
    Best regards,
    Stefan

  • Using Server Side Cookies between pages of a BSP application

    Hi,
    I have Page1 which will retrieve some data into a internal table. Once user performs an action I want to set a server side cookie in Page1 and then retrieve that cookie with data in Page2 of the same BSP and display it?
    Is this possible using set/get server cookies?
    Thanks
    Kiran

    Hi Kiran,
    Yes, you can.
    Basically, you set a server-side cookie in the event OnInputProcessing of Page 1 (or the MVC equivalent) :
    cl_bsp_server_side_cookie=>set_server_cookie(
      exporting
        name = 'TEST'
        application_namespace = 'NONE'
        username = 'NONE'
        session_id = 'NONE'
        data_value = <your_data_here>
        data_name = 'NONE'
        expiry_time_rek = 3600 ).
    And, you retrieve this information in the OnInitialization event of Page 2 :
    cl_bsp_server_side_cookie=>get_server_cookie(
      exporting
        name = 'TEST'
        application_namespace = 'NONE'
        username = 'NONE'
        session_id = 'NONE'
        data_name = 'NONE'
      IMPORTING
        expiry_date = w_date
        expiry_time = w_time
      CHANGING
        data_value = <your_data_here> ).
    Best regards,
    Guillaume

  • Problem with server side cookie

    Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the  cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the  cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
    This is the source code that i'm implementing:
    OnInitialitation:
    wa_comunnication_data-mobile = wa-mobile.
              wa_comunnication_data-telefono = wa-tel_number.
              wa_comunnication_data-email = wa-email.
              APPEND wa_comunnication_data to comunnication_data.
               cl_bsp_server_side_cookie=>set_server_cookie(
                  EXPORTING
                   name = 'cook_comunnication_data'
                   application_namespace = 'NONE'
                   application_name = 'NONE'
                   username = 'NONE'
                   session_id = runtime->session_id
                   data_value = comunnication_data
                   data_name = 'comunnication_data'
                   expiry_time_rel = 720 ).
    OnInputProcessing:
    cl_bsp_server_side_cookie=>get_server_cookie(
          EXPORTING
           name = 'cook_comunnication_data'
           application_namespace = 'NONE'
           application_name = 'NONE'
           username = 'NONE'
           session_id = runtime->session_id
           data_name = 'comunnication_data'
          CHANGING
           data_value = comunnication_data ).
         READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
    regards, marcel.

    Why do you need to use cookies in the same BSP Application?
    Try to use below:
        username              = sy-uname
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
    <i>*reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • How to implement server side methods in client side player from main.asc?

    Hi,
    I am developing video player using RTMP NetConnection and NetStream object but it is giving me below Error. Can you please tell me how can I handle this. I have main.asc file form FMS server side but I don't know how to use it. 
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback setUserID.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback syncChat.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback playingNotComplete.
    Async Error found = <br>Error #2095: flash.net.NetConnection was unable to invoke callback nowPlaying.
    Can anyone please help me ot solve this issue?
    Best regards,
    Sunil kumar

    javascript are run on the client side.. but i think what you actually mean is getting some validation to your database without submitting the form?. yes it doesn't consumes time and memory of server.. why not use ajax so you can only submit a little request.. rather than submitting the whole page..

  • How can HANA Server Side JavaScript use "Eval" function?

    Hi HANA Experts,
      I use EVAL function to create an object by classname in xsjs file, but it has an Error "Eval is evil". In Client javascript, we can use the Eval function. How can we use "EVAL" function in HANA server side javaScript?  Thanks a lot.

    That looks like the client side JSLint check to me.  Those can be customized or even turned off. If you truly want to use eval.
    >XSJS inherits most of the features of javascript but do not expect all of its features
    Actually that's not exactly accurate.  XSJS is standard ECMA JavaScript (Mozilla SpiderMonkey VM).  It does run in strict mode, however. This isn't a limitation of XSJS but a conscious decision to force the VM into the strict mode - which is really the recommendation for JavaScript anyway.  We also apply JSLint checks as above. Sometimes they are quite restrictive. However they can be customized or even completely turned off at the project level:
    To the point of Eval, there are some excellent articles online.
    http://javascriptweblog.wordpress.com/2010/04/19/how-evil-is-eval/
    coding style - When is JavaScript&amp;#39;s eval() not evil? - Stack Overflow
    JSLint Error Explanations - eval is evil

  • How to use server-side classes in a web service proxy client ?

    Greetings,
    I'm using WebLogic 10.3 with Workshop 10.3 on Windows. I generate a Web Service client in Workshop. There are two options in the New->Others->Web Service category: ClientGen Web Service Client and Web Service Client. I've chosen the second one as it's a JAX-WS Web Service and I think that the first one (ClientGen Web Service is to be used with JAX-RPC Web Services. The proxy is generated but, since the Web Service is using POJOs as parameters, a new version of these POJOs is also generated. For example, my Web Service has an operation like: public OrderStatus putOrder (Order), where OrderStatus and Order are application scoped POJOs. The proxy generation process generates a _PortType class which is supposed to be used by the calling client. This class defines an operation public OrderStatus putOrder(Order), but the OrderStatus and Order classes aren't the original ones but the generated ones. The issue is that these generated classes aren't completely equivalent to the original ones, for examples all lists become arrays, the constructors are different, etc. This is extrememly annouying. Is there any option to say to the proxy generation process to keep with the server-side classes ?
    many thanks in advance for any help.
    Nicolas

    The only solution to this problem seems to be using dynamic proxies. But it doesn't work neither as the following code:
    Service service = Service.create(new URL("http://localhost:7001/OrderServiceProject/OrderService?WSDL"),
    new QName("http://www.simplex_software.fr/demo/services", "OrderService"));
    OrderService orderService = service.getPort(new QName("http://www.simplex_software.fr/demo/services", "OrderServicePort"), OrderService.class);
    raises the following exception:
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
    INFO: Dynamically creating request wrapper Class fr.simplex_software.demo.services.jaxws.PutOrder
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
    INFO: Dynamically creating response wrapper bean Class fr.simplex_software.demo.services.jaxws.PutOrderResponse
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
    INFO: Dynamically creating request wrapper Class fr.simplex_software.demo.services.jaxws.GetOrderStatus
    16 déc. 2009 19:55:51 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
    INFO: Dynamically creating response wrapper bean Class fr.simplex_software.demo.services.jaxws.GetOrderStatusResponse
    Exception in thread "main" java.lang.IllegalArgumentException: fr.simplex_software.demo.services.OrderService is not an interface
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:630)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:331)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:295)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at fr.simplex_software.demo.client.OrderServiceClient.main(OrderServiceClient.java:23)
    As a matter of fact, fr.simplex_software.demo.services.OrderService is not an interface but, nevertheless, it's a SEI and it was generated as it is by the IDE Web Service wizard. Big, big confusion ! Of course, this sample works perfectly with Metro, in NetBeans using Glassfish.

  • Web service proxy - how to use server side in/out objects

    We have logic in oracle database. We have pl/sql api with oracle object types as in/out parameters. On server side we have pojo classes with method to convert from/to sql structs, arrays.
    pl/sql apis are exposed as web services.
    When I create web service proxy, all required pojo classes are created from wsdl on client side.
    Currently we are also writting client part of the code(where we also have oracle database and we want to reuse server pojos). Server pojo classes are in separate jar file and used also on a client side.
    Is it possible to tell jdeveloper when creating web service proxy, to not create client side pojos, exception classes, ... , but use those from jar file.
    Currently I just copy server pojo over generated client ones, make some modifications and it works. But each time I regenerate web service proxy I have to do this step manually.
    Edited by: zgrega on Sep 24, 2010 7:43 AM
    Edited by: zgrega on Sep 24, 2010 7:47 AM

    best is to wrap the generated WS proxy in a JavaBean. This way you can create the exception handling once and apply it to all uses of the WS proxy by overriding the generated code
    Frank

  • How to configure server side discovery for email account configuration as an email provider ?

    Hello,
    I would like to know if there is any way to provide configuration settings for a regular (not Exchange) email account on server side (email provider side) ?
    iPhone is supporting autodiscover for Exchange but doesn't seem to support it for regular POP or IMAP mail accounts.
    I would like to avoid going through Profiles.
    Regards,

    A further restriction of team workspaces and their inbox is that you cannot write mails on behalf of the tws's address.
    Also, you cannot define aliases on the inbox of a tws. There is an open ER 8824582: CREATE AN ALIAS FOR A TEAM WORKSPACE'S EMAIL ADDRESS
    Furthermore, you need to wait for 2.1 to have IMAP access on tws's (we definitely hope 2.1 will bring this feature).
    All this brought us to the decision of not using tws's inboxes at all (not defining mail addresses for them), and use (pseudo) personal workspaces and delegation for functional inboxes.
    HTH, Thomas

  • How to delete server information in http header?

    Hello,
    how could i delete the server information in the http-header?
    HTTP/1.1 500 Internal Server Error
    connection: close
    server: SAP J2EE Engine/7.00   <--- this here
    date: Tue, 11 Nov 2008 08:27:08 GMT
    pragma: no-cache
    content-type: text/html;charset=ISO-8859-1
    content-length: 2046
    set-cookie: saplb_*=(icdus445_PA3_03)39216850; Version=1; Path=/
    Best regards,
    Dennis

    Hi,
    the solution is to set the value for UseServerHeader to false.
    This can be done from the VisualAdmin for the HTTP service of all servers + dispatcher.
    Thanks for the support
      Christian Birkle

  • How to enable server-side include in OS X 10.8

    Do I need to modify apache2/httpd.conf directly, or is there a higer level way to do this?
    If need to modify httpd.conf, exactly how?
    thanks.

    go to System Preferences > Users & Groups
    Login Options (underneath the list of users)
    Tick "Show fast user switching menu as .."

  • How to Specify Which Version of Rsync on Server Side

    I have installed rsync 3.0.6 on both client and server side and know how to specify which version to use on the client side but am I right in assuming that if I don't specify some how on the server side it will use the version stored in /usr/bin/rsync? Do I have to move the version stored in /usr/local/bin/rsync to /usr/bin?
    Thanks.

    --rsync-path=PROGRAM specify the rsync to run on remote machine

  • Server-side includes from a table

    The instructions are very basic and do not include instructions on how to use server-side includes from a table.
    I can find nothing on Google or at Adobe on this subject, not even on the old InterAKT site.
    Has anyone got a demo, tutorial etc. or just some advice please.
    I have created a table in the database, embedded the script in the page but what now?
    I find the server-side includes from a list easy to use but it has limitations that I hope server-side includes from a table will overcome.

    I found the answer, all on my own. Go to http://www.interaktonline.com/Documentation/MXKollection/108000_sever_side_includes.htm
    Its a video demo and all is revealed.

  • Enable server side soring

    Dear all
    Can please someone tell me how to enable server side sorting in LDAP version 6.3. My application requires that this functionality to be enabled and i don't know how to enable it.
    please advice.

    You have to create browsing indexes.
    Have a look at [http://docs.sun.com/app/docs/doc/820-2765/fpypa?l=en&a=view&q=server+side+sorting] and
    [http://docs.sun.com/app/docs/doc/820-2763/bcaug?l=en&a=view&q=server+side+control]

Maybe you are looking for

  • Ready to take a swandive out the window after my computer!!!  Please help!!

    I am going nuts. I got an iPod Nano today, and being as I already had the iPod shuffle, I thought I could just hook it up and fly at 'er. But no... I am ready to pitch the computer out the window. I am given a message when I hook the nano up that I n

  • Connecting XI to XI using Idocs

    Hi, I have a scenario where i have a B2B scenario where XI has to connect to another XI. The method to pass data is via IDOCs. Does anyone have experience with a similiar scenario? Thanks,          Udi

  • Incorrect unread message counter

    My iphone shows that I have one unread messages when no messages are marked as unread (no blue dots). I've opened and read every message; I have only one account on the phone. I've tried resetting the iphone, deleting the account and starting from sc

  • IBooks search question

    My question regards search results in iBooks. This is for 2 books in pdf format. In the first book, when I search for a particular number, the search results show 1) page number results and 2) text results containing the number. Shown below. In the s

  • Does the app store filter content or not?

    I went to do a search on my iPhone in the App Store and saw the following screenshot. I was shocked that apple would allow this. What if it was my daughter's iPhone?!