Are you trying to allow the person to use the BSP without a login?
If so then look at SICF, find your BSP in the tree and look at the properties you can set the login here and thus never prompt the person to even login.
If you want to secure the login per user you look also under SICF and you can find more information on the authentification of a BSP by looking User" target="_blank">http://help.sap.com/saphelp_webas620/helpdata/en/02/4b528f2a8d11d5991f00508b6b8b11/content.htm">User Concepts
It's actually a fairly simple process once you get to the right spot 😉
What I would recommend is that you first read: Determining Unique Ids for Server Side Cookies. This is a simple example I once build for chocolates. What it demonstrates is that you can just 'hard-code' many of these strings such as username and session-id.
However, one unique bit of identification you will need. My first approach would be to just GUID_CREATE (take the 32 byte string), and response->cookie on path /. Use this string as key for the server side cookie. As long as the browser is running, you are in business.
++bcm
Add comment