<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Access to SessionBundle</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Access to SessionBundle</description>
  <pubDate>Sat, 11 Apr 2026 01:08:57 -700</pubDate>
  <lastBuildDate>Thu, 15 Nov 2012 19:01:56 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3799</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Access to SessionBundle : Also, if you only use a single...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15214#15214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3799<br /><strong>Posted:</strong> 15-Nov-2012 at 7:01pm<br /><br />Also, if you only use a single BOS, this could simply be a static dictionary with a user id and datetime. When they login a value would be added to the dictionary, or if it exists it would simply check as above that the elapsed time is greater than the interval. You could then have your client ping using a remote service method which would then update the time.<br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 19:01:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15214#15214</guid>
  </item> 
  <item>
   <title>Access to SessionBundle : Typically how I&amp;#039;ve handled...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15213#15213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3799<br /><strong>Posted:</strong> 15-Nov-2012 at 6:58pm<br /><br />Typically how I've handled scenarios like this before is a lot simpler than using the session bundle.<br><br>When a user logs in we set a timestamp on the user table field to the current time, and update this every X amount of seconds (15-30 typically). If someone else tries to log in with those credentials and the time now vs the timestamp field is less than the update interval, we know the user is still logged in. When the user logs out properly this time field can be set to null, if for some reason they time out and there is not a proper logout sequence, the worst case is they can't log back in for 15-30 seconds. <br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 18:58:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15213#15213</guid>
  </item> 
  <item>
   <title>Access to SessionBundle :   Hi Louis,I&amp;#039;ve responded...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15212#15212</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3799<br /><strong>Posted:</strong> 15-Nov-2012 at 3:49pm<br /><br />Hi Louis,<div>&nbsp;</div><div>I've responded to your questions via email, but other members of the community might also have insights on how they've solved this issue.</div>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 15:49:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15212#15212</guid>
  </item> 
  <item>
   <title>Access to SessionBundle : We are currently using DevForce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15207#15207</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=963" rel="nofollow">Louis</a><br /><strong>Subject:</strong> 3799<br /><strong>Posted:</strong> 14-Nov-2012 at 8:23pm<br /><br /><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">We are currently using DevForce Classic (3.7.5.0) &nbsp;on one of our applications. <?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">We are interested in adding some level of session tracking in our app so that a single concurrent instance of a user login can be detected and enforced.&nbsp; We would like to do this in the BOS if we can.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">I see that the PersistenceManager login returns to the client a SessionBundle containing a unique SessionKey Guid along with the Principal.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">It would be advantageous if we could get to that SessionKey in the server-side methods, SaveSecurityCheck and QuerySecurityCheck, and do some validations on a database session record using that key.<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">Is there a way from the business object's SaveSecurityCheck method we can get to the SessionBundle from the PersistenceManager's reference?<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">Upon login I see that the SessionManager maintains a dictionary of&nbsp; SessionKey, Principal.&nbsp; While logout removes the SessionKey entry from the dictionary.&nbsp; How long does this table persist?&nbsp; If the client did not properly logout due to client-side abnormal termination does this mapping table periodically cleans itself?<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">Is there any&nbsp; functionality on the server that we can tap into to leverage this internal BOS SessionKey table&nbsp; ?<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">&nbsp;<o:p></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #0070c0; FONT-SIZE: 11pt">Are there any alternatives you can propose with this version of DevForce to address our login concurrency requirement?<o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Wed, 14 Nov 2012 20:23:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3799&amp;PID=15207#15207</guid>
  </item> 
 </channel>
</rss>