<div dir="ltr">Under what conditions do you want to perform this check? I'm trying to imagine a scenario where you wouldn't know the SessionID but I can't think of one.<div><br></div><div>You can use the OnCreate callback to know about all Sessions that exist, and the OnLogon/OnLogout callbacks to maintain an idea of which ones are currently logged on. Or, given that you do know all of the SessionIDs via OnCreate, you can also use Session.LookupSession(sessionID).IsLoggedOn. To force a logout, Session.LookupSession(sessionID).Disconnect("your reason here").</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">--</font></div><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font></div></div></div>
<br><div class="gmail_quote">On Wed, Dec 14, 2016 at 12:02 PM, Annal Shrestha <span dir="ltr"><<a href="mailto:annalshrestha@gmail.com" target="_blank">annalshrestha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>Is there a way i can check if the FIX connection(session) is already established without knowing the session ID?</div><div>Can i force logout existing connection?</div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/<wbr>listinfo.cgi/quickfixn-<wbr>quickfixn.com</a><br>
<br></blockquote></div><br></div>