GeeKs Blogging @ dotCOM

Let's share…
  • Home
  • About
  • 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.

  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • Delicious
  • FriendFeed
  • Gmail
  • Hotmail
  • Multiply
  • MySpace
  • Yahoo Buzz
  • Yahoo Mail
  • Share/Bookmark

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



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.

7 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.

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


  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Daily Dilbert

    •          
  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (91)
      • CRM News (3)
      • Sage Software / ACT! (1)
      • Siebel CRM (85)
    • EAI (2)
    • FUN 'n' FROLIC (4)
    • Hot Technologies (1)
    • IT News (34)
    • Meet the Author (8)
    • ORACLE (5)
      • Database (2)
    • Product Demostrations (5)
    • Uncategorized (3)
  • Tag Cloud

    Actuate 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 Logging Login Microsoft ORACLE Performance problems Product Defect Product Demostrations Scriptless solutions Security Server Siebel Siebel Secrets SOA SRF Tips Tools Tricks Tutorials User Property Workarounds workflows



  • Archives

    • 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
    • Nitin Jain
    • Prachi Sharma
    • Renuka Ankam
    • Vikas Luthra
  • Administrators

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

Fresh Ideas

  • Siebel - Unable to login to mobile client
  • Google Advertising Chrome now?
  • Oracle + Sun : New Download Site
  • Oracle buys Convergin
  • Google goes down??
  • Cloud Computing : Plain and Simple
  • Google advertising its Search??
  • Fastest Web Application yet??
  • Google gives words a new meaning
  • Managing Intellectual Properties

Just Said

  • Yogesh on Siebel EIM – Custom table mapping
  • Nitin Jain on Siebel – Unable to login to mobile client
  • leo on BI – Actuate Reports in PDF format in Siebel
  • Sanny on Siebel Server Architecture – an Introduction
  • Ranjith R on Siebel – Autosave Opportunity data – Sample Code
  • uberVU - social comments on Fastest Web Application yet??
  • Nitin Jain on Fastest Web Application yet??
  • James Arrington on Fastest Web Application yet??
  • Jonathan on Fastest Web Application yet??
  • Nitin Jain on Fastest Web Application yet??

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - Installer hangs midway
  • Siebel - Looping multiple records - Update records
  • Siebel - Automatic User Logout
  • Nitin Kumar Jain
  • Siebel - Scrolling between records - UP and DOWN
  • Fastest Web Application yet??

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).