cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro and cookie

former_member310764
Discoverer
0 Kudos

Hallo,

does anyone know, if there is a way to delete a sessioncookie within webdynpro applictions without closing the browser-window.

The other option would be closing the browser-window by force.

Thank you

Regards,

Marina

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the cl_wdr_task there are attributes like RESPONSE(IF_HTTP_RESPONSE) and SERVER(IF_HTTP_SERVER) where there are ways of handling cookies.

Regards,

Lekha.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Directly accessing the client side cookies in Web Dynpro is not support becuase it breaks the abstraction layer and may not be compatible with future releases nor would it be compatible with the NetWeaver Business Client Smart Client Rendering or the Flex Client Rendering.

Direct access to the cl_wdr_task object is also not supported by SAP. Such access can lead to inconsistences and future incompatibilies for which SAP will not take responsibility. You should only use the public APIs. If something is safe in CL_WDR_TASK, it will be wrapped in a class named CL_WD_*.

From the online help:

General rule is that classes and interfaces beginning with CL_WD_ or IF_WD_ have been released for application developers.

Classes and interfaces beginning with CL_WDR_ or IF_WDR_ have not been released. These classes are not contained in the package interface and they can change without prior notice. Furthermore, there may be side effects from calling these internal class methods.

There are some exceptions to this rule, for instance, CL_WDR_VIEW_ELEMENT. If you are unsure whether a class or interface has been released, you can define a package usage relationship from your package to the package interface SWDP, and activate server and client checks for your package. The extended syntax check then indicates whether you are allowed to use a certain object or not.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm