GeeKs Blogging @ dotCOM

Let's share…
  • Home
  • About
  • Contribute
  • How To – FAQs
  • Disclaimer
  • Terms & Conditions
5 Aug 2009

Siebel – Automatic User Logout

by Nitin Jain


Logging out a user automatically, when the user does not explicitly logoff.

This one came up as a request from NP on GeeksBlogging@dotCOM. I believe this would possibly be a very frequent issue and a common problem in almost all the Siebel Installations. The users generally come from a Sales background. They hardly care how they actually close the Siebel Application. In most cases, they just press the (X) button on top of the Browser window, rather than explicitly selecting File -> Logout.

In this case, though the Browser is closed, the session parameters in the server, and the Database Connection remains open. This is a major issue in many of Siebel Development Environments.

Here we explain how to get around it. I have been working on multiple solutions regarding this. But, following is the most elegant one I found. In Siebel Communications, if you look at the Server Architecture carefully, you would notice that there is a Business Service in Siebel Tools, “Communications Client” which does all the magic. You can add the following Server Script to the Service_PreInvokeMethod this Business Service.

I have tried adding some comments at appropriate places in the code. Let me know how it works.


function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
/* “ShellUIExit” is the method that is called at the time of exit from the Siebel UI */
if (MethodName == “ShellUIExit”)
{
var bs_CommSvr = TheApplication().GetService(“Communications Client”);
var ps_inp = TheApplication().NewPropertySet();
var ps_out = TheApplication().NewPropertySet();
var m_pValue;
m_pValue = Inputs.GetProperty(“m_pMediaStatusMgr”);

if (m_pValue !=”")
{
/* A user could potentially have multiple sessions open from the same machine. This is an added check for security purposes. */
bs_CommSvr.InvokeMethod(“IsTheLastSession”, ps_inp, ps_out);
var Is_Last = ps_out.GetProperty(“LastSession”);
if (Is_Last == “1″)
bs_CommSvr.InvokeMethod(“LogOutCommandName”, ps_inp, ps_out);
}
}
return (ContinueOperation);
}

In case this is not working, I would like to know your views on the topic.
Further research underway, I will keep updating this post.



Related posts:

  1. Siebel – Forcing User Logoff Hi all, Somebody recently asked me if there is a...
  2. Siebel – DefaultFocus – User Property In Siebel Application, whenever you navigate to a screen, the...
  3. Siebel – Fetch Active view properties – III I will discuss a practical example, and the corresponding Inputs...
  4. Siebel – getMilliseconds() usage Siebel by default displays all dates in the system accurate...
  5. Siebel – InvokeServiceMethod() on Calculated Fields InvokeServiceMethod() is used to invoke Business Services and take values...
  6. Siebel – millisecond dates on Applet I had discussed in my previous posts about invoking a...
  7. Siebel – Fetch Active view properties Hi, Working on a typical requirement recently, I came across...

Tags: Admin, logout, Siebel, Tips, Tricks, Workarounds



For regular updates, enter your email address below. We don't spam, we don't share with others!




This entry was posted on Wednesday, August 5th, 2009 at 8:29 AM and is filed under Siebel CRM. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

12 Responses to “Siebel – Automatic User Logout”

  1. David Clinton says:
    August 10, 2009 at 12:19 AM

    hey great..

    We were having this problem since a very long time in our system. We will definitely try this.

    thanks mate!

  2. Nitin Jain says:
    August 12, 2009 at 11:31 AM

    You are welcome, David! Glad it helped. Cheers.. :-)

  3. Naren says:
    August 27, 2009 at 2:39 PM

    Nitin,

    Even i am facing the same problem.
    i wil try it .

    thnx for the post

    regards
    Naren

  4. NP says:
    August 28, 2009 at 6:03 AM

    Nitin,

    Can you pls explian more about Inpurt parameter “m_pMediaStatusMgr”. From where will system get this parameter value?

    Thanks,
    NP

  5. Nitin Jain says:
    August 28, 2009 at 11:19 AM

    To be honest, not very sure, NP.
    Just pulled this out from somewhere. But, I guess you are right. Let’s do some more research around this. I will let you know if I find something more.

  6. Tejeshwer says:
    September 10, 2009 at 12:26 AM

    A very simple workaround is published on support web for this :)

    check this out:

    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=757036.1

    you do the hard work when you don’t know the easier way to do it … isn’t ;)

  7. Nitin Jain says:
    September 10, 2009 at 12:50 AM

    Great solution, Tejeshwer!

    For those still in doldrums, the “My Oracle Support” Link posted by TJ above points to an article which supports Browser scripting the Application Level object, to detect the pressing of (X) and calling the appropriate Application Level method.

    Definitely makes things simpler since we most of us would know about the Application Object, rather than the Communications Client Service as in the post above! ;-)

    Thanks, TJ.

  8. Narayan Patro says:
    July 20, 2010 at 8:52 PM

    The solution discussed in the blog works for all scenarios (e.g., user logs out from the app using File Logout or closing the browser).
    Ensure the following line calls the command “LogOut” for the communications client to work.
    bs_CommSvr.InvokeMethod(”LogOut”, ps_inp, ps_out);

  9. Narendra says:
    August 20, 2010 at 10:19 AM

    hi, i’m narendra,
    i’m new to siebel…
    will u people please tell me some important concepts , so that it can help me in learning quickly

  10. Bhavana says:
    February 16, 2011 at 5:45 AM

    Hi,
    Will this work for Siebel Call center and Version 7.8.2?

    Thanks in advance
    Bhavana

  11. Nitin Jain says:
    February 21, 2011 at 3:30 AM

    Hi Bhavana,

    Actually this was developed for v7.8 itself. So, it should work fine, I assume.

    Do give it a shot and let us know !

    Cheers ..

  12. Raks says:
    March 17, 2011 at 12:59 PM

    Hi,

    Any idea how to ristrict multiple user session in Siebel. I want one user should open 2 sessions only. if he opens more than 2 session, message should pop up ‘mexmium session limit reached’.

    Thanks!

Leave a Reply

Click here to cancel reply.


« Siebel EIM Career – A day in Life
Google acquires On2 »



  • Admin Controls

    • Log in
  • Talk to us

    • Bouquets, brickbats, suggestions, complaints?

    • Click here...
  • Authorships

    • We are currently looking out for active authors. Are you willing to contribute?

    • Please click here

    • Everyone's invited..
  • Subscribe by Email


    • For regular updates, enter your email address below. We don't spam, we don't share with others!

  • Sponsors

  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Siebel Bookshelf

  • Daily Dilbert

    •          
  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (115)
      • CRM News (6)
      • Sage Software / ACT! (1)
      • Salesforce.com (2)
      • Siebel CRM (103)
    • EAI (2)
    • Events (1)
    • FUN 'n' FROLIC (6)
    • Hot Technologies (7)
    • IT News (47)
    • Meet the Author (9)
    • ORACLE (14)
      • Database (2)
      • Oracle Fusion Applications Stack (8)
    • Product Demostrations (5)
    • Uncategorized (4)
  • Tag Cloud

    Admin Admin Notifications Applet Author Introductions Business Component Calculated Function Certification CFG file Client Configuration Critique CRM Database Debugging EAI EIM eScript Fundamentals Fusion Middleware Google IT News License Login Microsoft ORACLE Oracle Fusion Applications Performance problems Product Defect Product Demostrations Salesforce Scriptless solutions Security Server Siebel Siebel Secrets SOA Tips Tools Tricks Tutorials Upgrade User Property Workarounds workflows



  • Archives

    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • November 2010
    • August 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Authors

    • Ankit Bhardwaj
    • Ashish Kaul
    • brijesh
    • Himanshu Bajpai
    • Madhvi Arora
    • nanpats
    • Nitin Jain
    • Prachi Sharma
    • Renuka Ankam
    • Vikas Luthra
  • Administrators

    • geeksblogging@gmail.com
    • admin@geeksbloggingat.com
  • Sponsors

Fresh Ideas

  • Login Failed in Dedicated Web Client : MVF Issue
  • Oracle Fusion Applications price list
  • Research to Development - Fusion Apps Series
  • Oracle ACE Program
  • HCM user Experience through UI - Fusion Apps series
  • "Managing Oracle Fusion Applications"
  • Microsoft *previews* Windows 8 - Part 2 now available !!
  • Let's upgrade Siebel CRM to Fusion Apps "right now" !!
  • Ness Technologies bought out by Citigroup Unit
  • Oracle #1 CRM Applications vendor ??

Just Said

  • Amit Sharma on Siebel – Installer hangs midway
  • Khadijah Mosinski on Salesforce.com not upto the mark?
  • Hamre319 on Highrise Customer Relationship Management
  • Nitin Jain on “Managing Oracle Fusion Applications”
  • zama racha on “Managing Oracle Fusion Applications”
  • Nishant Aggarwal on Siebel – License keys don’t work / are invalid
  • Nitin Jain on Siebel – SIA BC Utility Service – Invoke BC Method
  • Pedro Garcia on Siebel – SIA BC Utility Service – Invoke BC Method
  • Nitin Jain on “Managing Oracle Fusion Applications”
  • Nitin Jain on Microsoft *previews* Windows 8 – Part 2 now available !!

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Installer hangs midway
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - Automatic User Logout
  • Siebel - EAI Queue - Usage
  • Siebel - Looping multiple records - Update records
  • Siebel - SIS OM PMT Service
  • Siebel Tools hangs when checking out objects

Old Favourites

  • Highrise Customer Relationship Management
  • Siebel - Autosave Opportunity data - Sample Code
  • Siebel - Autosave Opportunity data - The concept
  • Renuka Ankam
  • Siebel - Merge Records - Checklist
  • Siebel - Fetch Active view properties - III
  • Oracle 11g Certification coming soon
  • Siebel - Fetch Active view properties - II
  • Siebel - Fetch Active view properties
  • Siebel - Automating Merge Records by script - II

If you also want to write on GeeksBlogging@dotCOM, click here. Area of Specialization no constraint. Become Famous!


Entries (RSS) and Comments (RSS).