artem_niko Posted June 8, 2019 Share Posted June 8, 2019 Good day! I would like to be explained to me about the user session when connecting. The fact is that I have authorization in the project through a password on the UniLoginForm form, which also connects to the Firebird database server (using the login and password created for the user on the server). In the same place, in this form, I have the password of the user who has just logged in, is entered into a variable of the PWideChar type, since the password is needed later for the user to work further when working with procedures through a DLL. But, at some point I have an error, the essence of which, according to the debugger, is that "the wrong username or password." In this regard, I have questions: 1. Did I understand correctly that the MainModule for each session is unique for the logged in user? 2. Where can I place a variable that stores a password so that it is accessible only to the user who has logged in and has just connected? To others who are logged in, they work with their password. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted June 8, 2019 Share Posted June 8, 2019 MainModule is unique for every session. ServerModule is same for all sessions. The best place for session isolated variables is MainModule. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now