on 03-11-2009 10:05 AM
Hi Experts,
How to get the session id and how to create the server side cookie in web dynpro for Abap?
Regards,
Arti.
Hi,
You can get the cookie like this.
data :request type ref to if_http_request,
request = wdr_task=>request.
call method request->get_cookie
exporting
name = 'NAME YOU HAVE GIVEN'
importing
value = lv_cookie_data.
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would be a client side cookie and not the server side cookie that the poster asked for. Also that is an internal API. Be careful because this function you named only works when Web Dynpro runs in a browser. The same function wouldn't work when using the NetWeaver Business Client Smart Client Renderer or the Flex Client.
>
> Thanks for info Thomas,
>
> I just want to tell her the way to get cookie.
>
> Thanks again for updates.
>
> Best regards,
> Rohit Mahajan
I think perhaps you missed an important distinction in the original question. Putting aside the issue of the non-public API, the poster was asking for server cookies. What you posted would pertain to client side cookies. They are two completely different things.
You can use the BSP Server Cookie functionality in Web Dynpro just fine. I've used it to pass data from Web Dynpro to BSP or to pass large amounts of data between two Web Dynpro sessions. In this case you simply don't need to supply a session ID. You want to be able to read data across sessions. As already pointed out, why would you want to store data within the same session? Web Dynpro is always stateful, so there is no need to persist within the same session.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arti,
i dont think it is possible to get session ID and create a server side cookie. These details are encapsulated by the WebDynpro Runtime classes & framework at least in WD for ABAP. Whats you exact requirement. Webdynpro abap has direct access to R/3 backend...all server side temporary storage can be done in temporary tables , session ONLY storage can be done in the WD Component via variables...
Greetings
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.