Jump to content

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...