Siebel- Close Browser window when logging off
by Madhvi AroraIn case of standard interactivity applications like eSales , eService, when user logs off, he is directed to the page through which he logged in the application. But there is a requirement to close the IE when user logs off. Here we are doing this for eSales Application. This can be done in following manner:
• Create a new .swt file say “LogOffDestination “ which contains following HTML script:
<html>
<head>
</head>
<body>
</body>
<script for=window event=onload>
window.opener = ‘ ‘;
window.open(“”,”_self”);
window.close();
</script>
</html>
• Now place this .swt file in <Siebel Tools>\WEBTEMPL\, <Siebel Client>\WEBTEMPL\ and <Siebel Server>\WEBTEMPL.
• In Siebel tools, navigate to “Web Template” object in Object Explorer. Create a new web template say “LogOff Destination” and give this new “LogOffDestination.swt” in the “File Name” property of the “Web Template File” object.
• Now Navigate to “Web Page” object in Object Explorer. Create a new Web Page say “Log Off Destination” and set “LogOff Destination” Web Template you just created in “Web Template” object.
• Now navigate to “Application” object in Object Explorer. Query for “Siebel eSales”. Now change web page in “Logoff Acknowledgement Web Page” from the given value to “LogOff Destination”.
• Now compile “Web Template”,”Web Page” and “Application” objects in the srf.
Now when you log out from the application, it will close the IE.
Related posts:
- Siebel – Remove About SRF Window In my previous post, I had discussed as to how...
- Siebel – About SRF Window – Remove data Okay. This is something those who like to toy with...
- Siebel – Enable Detailed Logging – Local Very often we come across scenarios wherein the process is...
- Siebel – EnableServiceArgTracing – Logging Messages Hi, We have already discussed at quite a length the...
- Siebel – Forcing User Logoff Hi all, Somebody recently asked me if there is a...
- Siebel – Automatic User Logout Logging out a user automatically, when the user does not...
- Siebel – changing Textbox height There are a number of HTML controls available in Siebel....
nice post it can be very helpful if we same requirement. but i found it really abstract.. very much like support web..
can you please explain what these instructions are doing in the code?
window.opener = ‘ ‘;
window.open(””,”_self”);
and why don’t it worked in HI?
This can be used for both High and Standard Interactivity applications.Here I have just described the scenario for standard interactivity application.The .swt file can just use window.close() to close the IE.But this code ‘window.close()’ was working with IE 6 but not with IE 7.This was giving warning message on close of IE .So, on some research, I found the piece of code I mentioned in the post which worked with both IE 6 and IE 7.You can modify the code in .swt file as per your requirement.
Madhvi,
Any idea how to end user session when user closes the browser(X) without logging off using proper log off mechanism?
Thanks,
NP