<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Server side cookies in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085427#M1259433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Graham,&lt;/P&gt;&lt;P&gt;Unfortunately we are still using version 6.20.&lt;/P&gt;&lt;P&gt;But it is good study material for the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 07:41:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-06T07:41:38Z</dc:date>
    <item>
      <title>Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaq-p/3085420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting a server side cookie for saving an internal table in the following way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate 'xx' lijstnaam+0(18) kunnr into name.
CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=&amp;gt;SET_SERVER_COOKIE
  EXPORTING
    NAME                  = name
    APPLICATION_NAME      = 'Thumb_lijst'
    APPLICATION_NAMESPACE = 'Thumb_lijst'
    USERNAME              = kunnr
    SESSION_ID            = 'NONE'
    DATA_VALUE            = it_thumb_line
    DATA_NAME             = 'THUMB_LIJST'
*    EXPIRY_TIME_ABS       =
*    EXPIRY_DATE_ABS       =
      EXPIRY_TIME_REL       = '82800'  "23 h
*    EXPIRY_DATE_REL       =
    .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I call this from the browser everything works fine, when I try to retrieve the cookie with the method GET_SERVER_COOKIE it works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is that I want to generate this server side cookie before I even open up the browser.&lt;/P&gt;&lt;P&gt;In that way the client doesn&amp;#146;t have to wait for a time consuming remote function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is that the cookie is perfectly generated in advance, but when I open the browser and try to retrieve the cookie it doesn&amp;#146;t find anything alltough there is an entry in table SSCOOKIE.&lt;/P&gt;&lt;P&gt;So the RFC starts, gets the data and stores it in a cookie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This generates two additional lines in SSCOOKIE with identical values as the first line.&lt;/P&gt;&lt;P&gt;The only field that differs is the expirytime.&lt;/P&gt;&lt;P&gt;So now there are three lines in SSCOOKIE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the customer then again clicks on a button to retrieve the cookie it works perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is : is it possible to generate server side cookies in advance so that when a customer opens his browser all is stored in cookies and there is no need to call time consuming RFC&amp;#146;s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any clues, info, &amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 10:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaq-p/3085420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085421#M1259427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yours is a stateless or stateful application. if its stateful, instead of cookies, you can use application class to hold the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 11:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085421#M1259427</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-12-05T11:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085422#M1259428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a stateless application, I want to reduce the waiting time for a customer by preparing cookies for that particular customer in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 11:04:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085422#M1259428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085423#M1259429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out that the cookie-mechanism is using import / export to / from database SSCOOKIE.&lt;/P&gt;&lt;P&gt;Those methods are using dataclusters wich are saved in transaction-specific ABAP-memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think that is the reason that my idea doesn't work.&lt;/P&gt;&lt;P&gt;Does anybody know a workaround for this problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 13:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085423#M1259429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085424#M1259430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the RFC is taking too long and the data does not have to be real-time, one solution would be to store the data locally and update periodically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 14:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085424#M1259430</guid>
      <dc:creator>Patrick_McMahon</dc:creator>
      <dc:date>2007-12-05T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085425#M1259431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Patrick,&lt;/P&gt;&lt;P&gt;That idea sure is worth thinking about, it requires some redesign of my BSP's but it could be an elegant solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip,&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 14:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085425#M1259431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085426#M1259432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are looking at storing the data somewhere it can be quickly accessed try looking at ABAP Shared Objects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 22:18:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085426#M1259432</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-12-05T22:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Server side cookies</title>
      <link>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085427#M1259433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Graham,&lt;/P&gt;&lt;P&gt;Unfortunately we are still using version 6.20.&lt;/P&gt;&lt;P&gt;But it is good study material for the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dirk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 07:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/server-side-cookies/qaa-p/3085427#M1259433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T07:41:38Z</dc:date>
    </item>
  </channel>
</rss>

