cancel
Showing results for 
Search instead for 
Did you mean: 

sessions management of an iview

Former Member
0 Kudos

Hi all,

I want to close a session of an iview through a code. Please let me know if any API are being used for it.

I am using EP 6 and NWDS 2.0.9.

Regards,

Vaibhav

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member201361
Active Contributor
0 Kudos

hi,

plesae refer this link

Http Session:

[http://help.sap.com/saphelp_nw04s/helpdata/en/3b/67efac8476624f954a4d56e62de280/frameset.htm]

IPortalComponentSession:

[http://help.sap.com/saphelp_nw2004s/helpdata/en/a0/3b7f41009d020de10000000a1550b0/frameset.htm]

thanks and regards ,

fazal

Edited by: fazal ahamed on Mar 27, 2008 10:05 AM

former_member201361
Active Contributor
0 Kudos

hi,

wdAdapter is not rssolved only if it is not imported.

please check is one.

righjt click on the class>source>organize imports .

To close the session Invalidate() is used .

thanks and regards ,

fazal

Former Member
0 Kudos

Hi,

I think using the following code might solve your problem.

HttpServletRequest request = (HttpServletRequest) WDProtocolAdapter.getProtocolAdapter().getRequestObject().getProtocolRequest();

HttpSession session = request.getSession();

session.inValidate();

request.getSession() will return the existing session if one is available otherwise creates one and returns it.

session.invalidate() will close the session.

Hope this code will solve the problem.

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Hi Srinivasan,

I am getting following error:

"WDProtocolAdapter cannot be resolved."

I am using NWDS 2.0.9. Is there any jar file for this api?