Skip to Content
author's profile photo Former Member
Former Member

using server-side cookies to store data in a non mvc application


I am trying to understand the use of server-side cookies in a non mvc base application with single page. I have an auto attribute in page called 'count' which I am increamenting on OnInputProcessing().

In OnRequest() I am getting the server-side cookie using 'CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE' and take value of count from that and display that on my layout.

In OnManipulation() I am setting the value of count back to the cookie using ' CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE'

My problem is the value of count set to '0' when I am accessing it. then after subsequent click on button the value remains at '1'. i.e. It increaments only once.

On debugging I found that when it reaches OnRequest() the value of count becomes '0'.

can you explain why & what need to be done to overcome this.

Thanks & regards


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 09, 2005 at 03:18 PM


    My first thought would be that you should set the cookie at the place (thus oninputprocessing) wher you increment the count variable. Can you show some more code in order to understand better the problem pls?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.