Quantcast
Viewing all articles
Browse latest Browse all 3876

Logoff method does not work in EP7.3

Hello,

I have implemented a solution to logoff an user from portal after a idle timeout interval of 60mins.

The solution is similar to the solution provided in the below link

http://wiki.sdn.sap.com/wiki/display/EP/EP+Snippet+-+Portal+user+idle+timeout+for+logoff+-+custom+javascript

 

The Logoff method in the above sinppet is javascript standard function which works well with Portal 7.0 but the same code does not work in Portal 7.3.

Below is the code that is written in the custom javascipt file

function logoffAcn(){ \n" +

   "  try{ \n"+

   " var val='logoff'; \n" +

   " logoff(); \n"+

   " val= window.showModalDialog('/irj/servlet/prt/portal/prtroot/com.acn.desktop.idletimeout.SessionExpired', '', 'dialogHeight: 180px; dialogWidth: 400px; edge: Raised; center: Yes; help: No; resizable: No; status: No'); \n" +

    " } catch(e) { \n"+

   " alert('inside exception' + e.message) \n" +

   "     } \n" +

   "} \n" +

 

When the funtion logoffAcn is called, logoff() throws and exception as below

 

"The value of the property "logoff"is null or undefined, not a Function object.

 

But i am very sure that we dont have to define this method anywhere in the code.

Is there any library file that has to be added for this method?

 

Help will be appreciated.

 

Thanks

Jeet


Viewing all articles
Browse latest Browse all 3876

Trending Articles