<?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 : How To: LoginManager enable single session per login</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : How To: LoginManager enable single session per login</description>
  <pubDate>Thu, 16 Apr 2026 19:36:03 -700</pubDate>
  <lastBuildDate>Thu, 23 Feb 2012 09:38:27 -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=3277</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>How To: LoginManager enable single session per login :   I&amp;#039;ve seen that before...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12758#12758</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3277<br /><strong>Posted:</strong> 23-Feb-2012 at 9:38am<br /><br />I've seen that before and I think one of the best ways to handle this stuff (I'm about to do it myself) it to keep some kind of token on a server and remove it when same user logs in. That will kick out previous user - this can be done with push notifications to OTHER users.<div></div><div>It will work like so:</div><div>&nbsp;</div><div>Person1 logs in as "User1" and writes tag "Person1:User1"</div><div>&nbsp;</div><div>Person 2 comes along and logs in as "User1" - while logging in - it will detect that Person1:User1 already logged in and will kick him out by sending push notification. Person1 in fact may be out already, but if not - he will get notification that someone with same login just connected and he is being pushed out.</div><div>&nbsp;</div><div>This kind of stuff will be obvious for users and they will buy licenses if that is a main point :)</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 09:38:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12758#12758</guid>
  </item> 
  <item>
   <title>How To: LoginManager enable single session per login : OK. Well, you can hook into the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12721#12721</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> 3277<br /><strong>Posted:</strong> 21-Feb-2012 at 1:18pm<br /><br />OK.&nbsp; Well, you can hook into the window OnBeforeUnload event and call Logout there.&nbsp;&nbsp;Unfortunately, it's not really clear whether requests to the server will always make it through.&nbsp;&nbsp;&nbsp;A timer would help, but then you'll also need to track user activity so that you know when a session has gone stale.&nbsp; <DIV>&nbsp;</DIV><DIV>Here's some info on hooking into the&nbsp;window unload:&nbsp; <a href="http://mark.mym&#111;nster.nl/2009/02/28/integrati&#111;n-of-browsers-unloading-with-silverlight/" target="_blank">http://mark.mymonster.nl/2009/02/28/integration-of-browsers-unloading-with-silverlight/</A>&nbsp;</DIV><DIV></DIV><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 13:18:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12721#12721</guid>
  </item> 
  <item>
   <title>How To: LoginManager enable single session per login :   If we talk Silverlight - I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12720#12720</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3277<br /><strong>Posted:</strong> 21-Feb-2012 at 1:07pm<br /><br />If we talk Silverlight - I don't think users will ever "logout". They will close browser most likely.<div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 13:07:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12720#12720</guid>
  </item> 
  <item>
   <title>How To: LoginManager enable single session per login : Hi Chris,  DevForce itself doesn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12717#12717</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> 3277<br /><strong>Posted:</strong> 21-Feb-2012 at 12:36pm<br /><br />Hi Chris,<DIV>&nbsp;</DIV><DIV>DevForce itself doesn't provide this, but you should be able to do what you need within your custom IEntityLoginManager.&nbsp;&nbsp; An instance of your login manager is constructed by an EntityServer when it starts, so you can keep your own state for the lifetime of the EntityServer.&nbsp;&nbsp; Since a login manager implements both Login and Logout methods you can add and remove the user from your own list or dictionary, and check this to restrict access.&nbsp; The only real way to fail a login is to throw a LoginException (or a custom sub-type of it), but what you throw in your login manager will flow back to your client application.</DIV>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 12:36:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12717#12717</guid>
  </item> 
  <item>
   <title>How To: LoginManager enable single session per login : Hi,  Please can you advise on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12709#12709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1374" rel="nofollow">Chrizy</a><br /><strong>Subject:</strong> 3277<br /><strong>Posted:</strong> 21-Feb-2012 at 7:02am<br /><br /><p ="Ms&#111;normal">Hi,<o:p></o:p></p><p ="Ms&#111;normal">Please can you advise on how best to solve the following requirement?<o:p></o:p></p><p ="Ms&#111;normal">I have created a custom LoginManager which is validating theusers credentials against my database, I need to restrict access to only onesession per user (Users are paying on a per user license). The way I think thisshould work is ideally to warn the user they are already logged in, offer acontinue/exit option and if they continue logout the initial instance.<o:p></o:p></p><p ="Ms&#111;normal">Thanks</p><p ="Ms&#111;normal">Chris</p>]]>
   </description>
   <pubDate>Tue, 21 Feb 2012 07:02:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3277&amp;PID=12709#12709</guid>
  </item> 
 </channel>
</rss>