Hey,
i want to check the Authentification Status of a user, accessing my Homepage/Application with Sphinx.
So i made a function on the start of the Application which checks the sphinxweblogin.isloggedin value.
procedure StartApplication;
begin
if (not dmAuth.SphinxWebLogin.IsLoggedIn) then
DisplayLoginView
else
DisplayMainView;
end;
If the user is already authenticated, he directly gets redirected.(ex. www.myhompage/xdata/UserPortal)
When he is not, he has to login first via SphinxWeblogin.Login
.
After he has successfully Logged in i want him also to be redirected to the application.(www.myhompage/xdata/UserPortal) but that's not working correctly.
I always have to refresh/restart the Page, so that the initial Authentification Check is made and only then the user gets to the UserPortal.
Is there something i'm missing out?
Do i have to call the redirectURL, configured in the SphinxWebLogin, again on the " OnUserLoggedIn" function?
I hope you understand my problem.
Thanks and kind regards,