cancel
Showing results for 
Search instead for 
Did you mean: 

LOGON ticket cookie in web dynpro

Former Member
0 Kudos

Hi,

When i tried to get all cookies iam not able to see logon ticket.any help

HttpServletRequest request =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

HttpServletResponse response =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletResponse();

Cookie[] cookies = request.getCookies();

for ( int i=0; i<cookies.length; i++)

{

}

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi sujesh,

Where can you find this HTTPServletRequest and HTTPServletResponse objects. I also trying same thing whether it works or not. But, i guess you have added aditional library files to work this.

Can you provide that information?

Thanks,

Bhavik

Former Member
0 Kudos

yaa u got to add servlet.jar to make this work

Former Member
0 Kudos

Hi Sujesh,

Ohh ok... I didn't find this jar anywhere.

From where you got this file?

Anyway, did you find SAP logon ticket with this code?

Regards,

Bhavik

Former Member
0 Kudos

Hi Sujesh,

Have you resolved this issue or not?

Even i also want to try this thing. So, can you please help me if you have completed?

Regards,

Bhavik

Former Member
0 Kudos

Hi Sujesh,

Have you checked authentication for your webdynpro application?

If yes, then it should show you first logon screen when you run your webdynpro application.And when you provide user information correctly it will create logon ticket with cookie name "MYSAPSSO2".

You can also check by writing on browser address bar following line: "javascript:document.cookie"

It will show all cookie information.

Regards,

Bhavik