Skip to Content
avatar image
Former Member

Session Cookies

How to create session cookies ?(client side cookies)

For storing of data(variables or internal tables )and retriving them back .

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 12, 2004 at 12:50 PM

    By doing a search for "cookies" in this forum you will find lots and lots of help on the topic. Including examples of how to save data and retrieve it.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2004 at 01:22 PM

    Sachin,

    I think there is a size limitation on the client side cookies.

    Brian 'The Great', told us once (or maybe several times) that using client side for internal table will easily reach and pass that limit.

    Well let me correct myself 😉 Brian was talking about url size limitation on one of the topic he wrote (Pay attention on the bolded paragraph):

    <i>

    When you are using the navigation object, it is actually doing a redirect via the browser back to the server. There is a limit on the number of bytes that will fit into the url, about 2-4KB. Internal tables always springs this limit.

    <b>Store table somewhere in the server. If you are stateful, any place on a controller, model or application class will do. If stateless (or in anycase), dump the table into a server side cookie. This is well documented, has been discussed a number of times in this forum, and even one of my weblogs have an example.</b></i>

    Regards,

    Iwan

    Message was edited by: Iwan Santoso

    Message was edited by: Iwan Santoso

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 12, 2004 at 06:19 PM

    Hallo,

    As I see that this is your first append in this forum, let me first give you the most import link for the next few weeks. <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a> is a document that should help in finding information.

    For you specific question, the <a href="/people/brian.mckellar/blog/2003/10/23/bsp-trouble-shooting-frequently-asked-short-questions">BSP Trouble Shooting: Frequently Asked (Short) Questions</a> has a short reference to response->set_cookie (versus request->get_cookie method).

    Accessing" target="_blank">http://help.sap.com/saphelp_nw04/helpdata/en/78/985287c06b11d4ad310000e83539c3/frameset.htm">Accessing Cookies sounds just like the documentation you wanted to read.

    ++bcm

    Add comment
    10|10000 characters needed characters exceeded