cancel
Showing results for 
Search instead for 
Did you mean: 

Logoff from EP

Former Member
0 Kudos

Hi All,

I have created an application in webdynpro & deployed on EP server.

I have integrated the application with EP & I can view my application through EP.

I want to logoff from EP whenever my application throws a specific exception.

Can anyone suggest me how can i implement that?

Thanks,

Arch

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can call a component in your application whenever an exception occurs and that component can handle a log out operation.

Logout component can simply redirect the url of the portal to the logout.

You can make use of the NavigationService API to do this.

Award points if helpful.

Regards,

Sujana

Former Member
0 Kudos

May I ask why you want to do it?

Former Member
0 Kudos

Hi

I am creating an application in webdynpro & integrating it with EP.

The webdynpro application tries to execute one more non sap application using webservices & if that application expires, i need to somehow invalidate the EP session so that user can't view error of type "session expired" & he should be prompted to login again..

I am able to invalidate the session if I run my application standalone(i.e not integrating in EP) & i am prompted to login again.

But this implementation doesn't work once integrated in EP...

It throws null pointer exception as it is perhaps not able to overwrite EP URL

If any idea.......do reply...

Thanks,

Arch

Former Member
0 Kudos

Why not extending the session timeout of the dynpro application within the portal context on the app server? Have a look

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7d/fdc99ab37a8d42892e0d39bbd23be8/frameset.htm">here</a>

Former Member
0 Kudos

Hi Roy,

It is not a question of extending session time for dynpro application.

The non-sap application i am trying to execute returns me a session which i am trying to maintain in my application but before the EP session goes, this session id expires......

So i want to forcefully logoff as soon as this second session expires.

Thanks,

Arch

Former Member
0 Kudos

Hi Arch,

And if you will refresh just your Dynpro app inside the portal when it expires?

I assume it will recreate a session with the non-sap apps...

Former Member
0 Kudos

One thing i noticed, the sessionid doesnot change even if i refresh or logoff from EP & login again.

I have to call a non-sap method to recreate it only when it gets expired on non-sap side.

I think non-sap application returns same sessionid everytime i call the method unless session gets expired from their side, it wont return new session id.

oh..... but still it will help me if i logout once session expires...

what do you suggest??

0 Kudos

Hi,

The "Portal logon" does not depend on the portal session, but on its Logon ticket.

So you should find ways to invalidate the Logon ticket.

Greetings,

Praveen Gudapati