Currently the program is able to remember which databases the user successfully connected. The cookies only exist for one running session of the program, which means if the user closes the program and reopens it, the program won't be able to remember which databases the user connected to last time. I'm not sure how long the user wants the cookie to last, so I defaulted the life cycle of the cookies to be only one running session. But if the user desires a longer time, we can change the life cycle of cookies.
Currently the program is able to remember which databases the user successfully connected. The cookies only exist for one running session of the program, which means if the user closes the program and reopens it, the program won't be able to remember which databases the user connected to last time. I'm not sure how long the user wants the cookie to last, so I defaulted the life cycle of the cookies to be only one running session. But if the user desires a longer time, we can change the life cycle of cookies.