Skip to Content
0
Dec 05, 2006 at 06:10 PM

BSP Set and get client cookie

509 Views

Hi Experts,

I have been trying to set and get cookie using following methods

CALL METHOD request->get_cookie

EXPORTING

name = 'gv_cust'

IMPORTING

value = gv_cust.

IF gv_cust IS INITIAL.

gv_cust = '001008896'.

CALL METHOD runtime->server->response->set_cookie

EXPORTING

name = 'gv_cust'

value = gv_cust.

ENDIF.

I have seen the threads discussing this, but not getting very clear idea on this.

Can you please answer my following queries

1) In which methods of the controller class should each of these methods be called?

2) If i want to get this cookie in other BSP(running in the same browser session), in which method should i write the get_cookie method.

Thanks in advance

Mona