ZConnection User property value

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
waheed
Junior Boarder
Junior Boarder
Posts: 26
Joined: 18.11.2005, 21:41

ZConnection User property value

Post by waheed »

After using the login prompt to connect to the database the value of User is blank why? It is blank even if I showed the User property onAfterConnect event.
kmr
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 12.06.2006, 22:18
Location: Northern Germany (really northern)

Post by kmr »

Don't know the reason but I assume, the user property is used as some kind of default value for connecting silently and is not written back by manual login, cause this could cause some inconsistency:

in case you close the connection and reconnect user and password properties could be used to connect silently (without login prompt).

Maybe I'm totally wrong, since I've never used that login prompt. So I don't know if silent connection is even possible when login prompt property is set to true.

Was just brainstorming. :-)
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

kmr is right. It's actually written like that in the TZConnection.Connect function comments.
In case of a second connect the user and password will be required by a login prompt again.

Mark
Post Reply