cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Cookies from Webdynpro ABAP

Former Member
0 Kudos

Hi,

Is it possible to read/write cookies on an end-user's machine through a Webdynpro ABAP Application?

If yes, how? OR are there any other options?

Regards,

Saleem

Accepted Solutions (1)

Accepted Solutions (1)

ChrisPaine
Active Contributor
0 Kudos

WDA doesn't support cookies, but it does support RIA via islands - and thus Flex (and Silverlight)

Flex does (sort of) support cookies. [Actionscript Cookie Util|http://myflex.wordpress.com/2008/11/12/actionscript-cookie-util/]

so you could write an island to read the cookies expose them to WDA app.

Of course you can do something similar with [Silverlight too|http://blogs.silverlight.net/blogs/msnow/archive/2008/07/15/tip-of-the-day-18-how-to-set-browser-cookies.aspx] but that would mean having a system that could support Silverlight islands.

But why would you want to use cookies anyway?

Cheers,

Chris

Former Member
0 Kudos

Thanks Chris for the information.

daniel_humberg
Contributor
0 Kudos

by the way: are server side cookies supported in WD ?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Sure, server side cookies work. Afterall its just a database entry. Although the class for server side cookies says BSP in the name, there is nothing really BSP specific about them. You can just ignore the optional parameters in the method calls that are for BSP (like the runtime session).

Answers (2)

Answers (2)

sreehari_vpillai
Active Contributor
0 Kudos

You have choices on this. Either go for a server side cookie , or go for a client side cookie. You can create a bsp page and write the cookie data on JS onLoad property (document.cookie = "username=Thomas").

Call the bsp page using suspend and resume plug so that after setting the cookie, it could come back to WD with ease

Former Member
0 Kudos

As I know, client cookies are not supported by WDA.

What do you want to achieve?

Best regards

Sebastian