GF.Master Posted May 7, 2025 Posted May 7, 2025 When I set multiple cookies in the BeforeLogin event of UniMainModule, there is no problem in normal deployment, and multiple cookies can be set. But when I deploy with hy, only the last cookie takes effect. And I tested version 1599, and there is still this bug. The version I use is 1583. I hope this bug will be fixed as soon as possible in future versions. At the same time, I hope hy can develop some source code, so that I can solve some known bugs in the case of updating the version. Finally, I would like to thank the author of unigui and hope that unigui will develop better and better! ! ! This is the sample code: procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean); begin UniSession.UniApplication.Cookies.SetCookie('app_Ticket', 'nowtime-' + DateTimeToStr(now), Now + 5); UniSession.UniApplication.Cookies.SetCookie('app_Sign', ' nowtime-' + DateTimeToStr(now), Now + 5); end; HyperServer-Cookie.zip Quote
Administrators Farshad Mohajeri Posted May 8, 2025 Administrators Posted May 8, 2025 Hi, We will check and let you know. Thx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.