<div dir="ltr"><div><div>Clear, thank you!<br><br></div>Best regards,<br></div>Pavel<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2018 at 06:02, Grant Birchmeier <span dir="ltr"><<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.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"><div class="gmail_default" style="font-size:small;color:#000000">Whatever you want to do, you want to do it in FromAdmin().</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">The OnLogon() function doesn't give you access to the incoming message.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">(If there is a problem with the logon message such that a logon will not occur, I'm 85% sure that FromAdmin won't even be called.)</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 2, 2018 at 5:12 PM, Pavel Karasev <span dir="ltr"><<a href="mailto:pavka1799@gmail.com" target="_blank">pavka1799@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hello!<br><br></div>In "acceptor" I need to store additional information for a session after successful logon of a client, e.g. a username provided in logon message.<br></div>From QF/n documentation it seems the proper place to do this is "IApplication.OnLogon()", as "OnLogon - notifies when a successful logon has completed."<br>The issue is that I cannot find how to recover the username in "OnLogon". It was available in "FromAdmin", and seems to be lost by the time OnLogon is called. <br><br>Is it indeed so?<br><br></div>How would you recommend to solve this?<br></div><div>I can see few options:<br></div>Option 1. Store the username already in "FromAdmin" after validating username/password (assuming the rest of logon process will be successful).<br></div>Option 2. Maintain additional dictionary <SessionID> -> <username>, add to it in FromAdmin (on logon messages) and read from it in "OnLogon".<br><br></div>However not sure is Option 1 is completely valid / safe?<br></div>And Option 2 seems to be over-complication...<br><br></div>Thank you!<br><br></div>Best regards<span class="m_-6199998647258915838HOEnZb"><font color="#888888"><br></font></span></div><span class="m_-6199998647258915838HOEnZb"><font color="#888888">Pavel<br></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">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/lis<wbr>tinfo.cgi/quickfixn-quickfixn.<wbr>com</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-6199998647258915838gmail_signature" data-smartmail="gmail_signature"><div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</font></span></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>