mazluta Posted July 25, 2021 Share Posted July 25, 2021 after enter to main form, and do some action, i tried key Ctrl-F5. but insted refresh the same page, i was leading to login page. is it correct? Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted July 26, 2021 Share Posted July 26, 2021 Yes, Unigui is a web app based, not page based. Link to comment Share on other sites More sharing options...
mazluta Posted July 26, 2021 Author Share Posted July 26, 2021 thanks. can we trap the ctrl-f5 key? Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted July 26, 2021 Share Posted July 26, 2021 procedure TMainForm.UniFormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if (key = VK_F5) and (ssCtrl in Shift ) then ShowMessage('Don''t leave me :-( '); end; Link to comment Share on other sites More sharing options...
x11 Posted July 27, 2021 Share Posted July 27, 2021 try this Link to comment Share on other sites More sharing options...
x11 Posted July 27, 2021 Share Posted July 27, 2021 and this Link to comment Share on other sites More sharing options...
Ron Posted July 31, 2021 Share Posted July 31, 2021 You could automatically log in the user and take him to the last form, if you could identify him and have saved his state. You would need public IP, local IP and a unique cookie set at last login. Link to comment Share on other sites More sharing options...
mazluta Posted August 14, 2021 Author Share Posted August 14, 2021 On 7/27/2021 at 10:15 AM, x11 said: try this good Link to comment Share on other sites More sharing options...
mazluta Posted August 14, 2021 Author Share Posted August 14, 2021 On 7/31/2021 at 11:57 PM, Ron said: You could automatically log in the user and take him to the last form, if you could identify him and have saved his state. You would need public IP, local IP and a unique cookie set at last login. that good too. so one can catch the ctrl-f5 (like Mohammed suggest) , write cookie to identify the CTRL-F5 , and "ON-LOAD-APP" check if this COOKIE exists... delete the cookie... 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