<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><br>Even weirder, though, is that I seem to be logged into my<br>application despite landing on an error page once I hit submit. To
<br>explain more, if I go back to the &quot;/login&quot; page in my URL bar from<br>this error page, the application clearly recognizes that I am logged<br>in properly. How could that be?<br><br></blockquote></div>That&#39;s because the sql was generated after creating the 
session.As the sql that you have shown is necessary for role and authorization and not authentication.<br><br>With Regards <br>Antano Solar John<br><br>