on 03-26-2008 1:57 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.