Jump to content

Clear Application Parameters


Wicket

Recommended Posts

***EDIT*** Answered my own question below, but left here in case it helps anyone else.

 

Hi All,

 

I have a situation where on some occasions I pass in two parameters to the application, lets say encrypted username and password. I have code in UniGUIMainModuleBeforeLogin which handles skipping the login screen if these parameters are passed in. I use this functionality if a user needs to be directly routed to the application without seeing the login screen. It works great.

 

However, my problem occurs when I want to logout, I call "ModalResult := MrOK" on my main form and this logs me out, but the original parameters are still there and thus I am logged back in, skipping the login form. Except in the case of logging out I want login form shown. 

 

Is there anywhere I can clear the parameters? This would then allow the function in UniGUIMainModuleBeforeLogin to fail as the parameters would be empty.

Alternatively could I redirect to a parameter-less URL.

 

I have tried URLRedirects and trying to clear the parameters - but no luck.

 

Does anyone have any ideas how I might achieve the result I need?

Link to comment
Share on other sites

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...