<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GeeKs Blogging @ dotCOM &#187; logout</title>
	<atom:link href="http://geeksbloggingat.com/topics/logout/feed/" rel="self" type="application/rss+xml" />
	<link>http://geeksbloggingat.com</link>
	<description>Let&#039;s share...</description>
	<lastBuildDate>Tue, 30 Aug 2011 21:29:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Siebel &#8211; Automatic User Logout</title>
		<link>http://geeksbloggingat.com/2009/08/05/siebel-automatic-user-logout/</link>
		<comments>http://geeksbloggingat.com/2009/08/05/siebel-automatic-user-logout/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 02:59:19 +0000</pubDate>
		<dc:creator>Nitin Jain</dc:creator>
				<category><![CDATA[Siebel CRM]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[Siebel]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Workarounds]]></category>

		<guid isPermaLink="false">http://geeksbloggingat.com/?p=720</guid>
		<description><![CDATA[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 [...]


<b>Related posts:<b><ol><li><a href='http://geeksbloggingat.com/2009/06/15/siebel-forcing-user-logoff/' rel='bookmark' title='Permanent Link: Siebel &#8211; Forcing User Logoff'>Siebel &#8211; Forcing User Logoff</a> <small>Hi all, Somebody recently asked me if there is a...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/17/siebel-defaultfocus-user-property/' rel='bookmark' title='Permanent Link: Siebel &#8211; DefaultFocus &#8211; User Property'>Siebel &#8211; DefaultFocus &#8211; User Property</a> <small>In Siebel Application, whenever you navigate to a screen, the...</small></li>
<li><a href='http://geeksbloggingat.com/2009/07/24/siebel-fetch-active-view-properties-iii/' rel='bookmark' title='Permanent Link: Siebel &#8211; Fetch Active view properties &#8211; III'>Siebel &#8211; Fetch Active view properties &#8211; III</a> <small>I will discuss a practical example, and the corresponding Inputs...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/15/siebel-getmilliseconds-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; getMilliseconds() usage'>Siebel &#8211; getMilliseconds() usage</a> <small>Siebel by default displays all dates in the system accurate...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/10/siebel-invokeservicemethod-on-calculated-fields/' rel='bookmark' title='Permanent Link: Siebel &#8211; InvokeServiceMethod() on Calculated Fields'>Siebel &#8211; InvokeServiceMethod() on Calculated Fields</a> <small>InvokeServiceMethod() is used to invoke Business Services and take values...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Logging out a user automatically, when the user does not explicitly logoff.</p>
<p>This one came up as a request from NP on <a href="http://geeksbloggingat.com">GeeksBlogging@dotCOM</a>. 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.</p>
<p><span id="more-720"></span>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.</p>
<p>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, &#8220;Communications Client&#8221; which does all the magic. You can add the following Server Script to the <i>Service_PreInvokeMethod</i> this Business Service. </p>
<p>I have tried adding some comments at appropriate places in the code. Let me know how it works. </p>
<p><i><br />
function Service_PreInvokeMethod (MethodName, Inputs, Outputs)<br />
{<br />
/* &#8220;ShellUIExit&#8221; is the method that is called at the time of exit from the Siebel UI */<br />
	if (MethodName == &#8220;ShellUIExit&#8221;)<br />
	{<br />
	var bs_CommSvr = TheApplication().GetService(&#8220;Communications Client&#8221;);<br />
	var ps_inp = TheApplication().NewPropertySet();<br />
	var ps_out = TheApplication().NewPropertySet();<br />
	var m_pValue;<br />
	m_pValue = Inputs.GetProperty(&#8220;m_pMediaStatusMgr&#8221;);</p>
<p>		if (m_pValue !=&#8221;")<br />
		{<br />
		/* A user could potentially have multiple sessions open from the same machine. This is an added check for security purposes. */<br />
		bs_CommSvr.InvokeMethod(&#8220;IsTheLastSession&#8221;, ps_inp, ps_out);<br />
		var Is_Last = ps_out.GetProperty(&#8220;LastSession&#8221;);<br />
		if (Is_Last == &#8220;1&#8243;)<br />
			bs_CommSvr.InvokeMethod(&#8220;LogOutCommandName&#8221;, ps_inp, ps_out);<br />
		}<br />
	}<br />
return (ContinueOperation);<br />
}<br />
</i></p>
<p>In case this is not working, I would like to know your views on the topic.<br />
Further research underway, I will keep updating this post.</p>


<p><b>Related posts:<b><ol><li><a href='http://geeksbloggingat.com/2009/06/15/siebel-forcing-user-logoff/' rel='bookmark' title='Permanent Link: Siebel &#8211; Forcing User Logoff'>Siebel &#8211; Forcing User Logoff</a> <small>Hi all, Somebody recently asked me if there is a...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/17/siebel-defaultfocus-user-property/' rel='bookmark' title='Permanent Link: Siebel &#8211; DefaultFocus &#8211; User Property'>Siebel &#8211; DefaultFocus &#8211; User Property</a> <small>In Siebel Application, whenever you navigate to a screen, the...</small></li>
<li><a href='http://geeksbloggingat.com/2009/07/24/siebel-fetch-active-view-properties-iii/' rel='bookmark' title='Permanent Link: Siebel &#8211; Fetch Active view properties &#8211; III'>Siebel &#8211; Fetch Active view properties &#8211; III</a> <small>I will discuss a practical example, and the corresponding Inputs...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/15/siebel-getmilliseconds-usage/' rel='bookmark' title='Permanent Link: Siebel &#8211; getMilliseconds() usage'>Siebel &#8211; getMilliseconds() usage</a> <small>Siebel by default displays all dates in the system accurate...</small></li>
<li><a href='http://geeksbloggingat.com/2009/05/10/siebel-invokeservicemethod-on-calculated-fields/' rel='bookmark' title='Permanent Link: Siebel &#8211; InvokeServiceMethod() on Calculated Fields'>Siebel &#8211; InvokeServiceMethod() on Calculated Fields</a> <small>InvokeServiceMethod() is used to invoke Business Services and take values...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://geeksbloggingat.com/2009/08/05/siebel-automatic-user-logout/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

