Jump to content

Problems with Url Rewrite to close the Main Form


belo

Recommended Posts

Hi!

 

I'm using URL Rewrite to hide the extent of the DLL, example:

 

www.mydomain.com / system / myapplicattion.dll

to rewrite ..

www.mydomain.com / system / myapplicattion

 

everything Ok

 

Except that when you close the Main Form, where is shown the page with Web Session and Terminate RestartApplication the link RestartApplication returns with the extension DLL.

 

How to change this link RestartApplication?

 

It is possible to close the MainForm redirect to another page or url that is not the standard UniGui?
Link to comment
Share on other sites

  • Administrators

UniServerModule->ServerMessages->TerminateTemplate

 

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>
 

Change the [###url###] to whatever you like.

Link to comment
Share on other sites

UniServerModule->ServerMessages->TerminateTemplate

 

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>
 

Change the [###url###] to whatever you like.

Thanks Farshad!

Link to comment
Share on other sites

UniServerModule->ServerMessages->TerminateTemplate

 

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">[###message###]</p>
<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>
</body>
</html>
 

Change the [###url###] to whatever you like.

 

 

Farshad,
 
If for example, substitute the URL for www.google.com, returns the link:
 
http:// localhost:8077/[###www.google.com###]
 
What is wrong?
 
I also wonder how to redirect to another direct address to close the Main Form?
Link to comment
Share on other sites

 

Farshad,
 
If for example, substitute the URL for www.google.com, returns the link:
 
http:// localhost:8077/[###www.google.com###]
 
What is wrong?
 
I also wonder how to redirect to another direct address to close the Main Form?

 

 

Hi,

 

For Restart Application Use

 UniApplication.Restart();

 

And For terminating Application use:

 

 

 UniApplication.Terminate();

 

 

 

Copy this code and paste to UniServerModule->ServerMessages->TerminateTemplate

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">Application Terminated !</p>
<p style="text-align:center;color:#A05050"><a href="http://www.google.com">Go to Google</a></p>
</body>
</html> 

 

Regards

Link to comment
Share on other sites

 

Hi,

 

For Restart Application Use

 UniApplication.Restart();

 

And For terminating Application use:

 

 

 UniApplication.Terminate();

 

 

 

Copy this code and paste to UniServerModule->ServerMessages->TerminateTemplate

 

<html>
<body bgcolor="#dfe8f6">
<p style="text-align:center;color:#0000A0">Application Terminated !</p>
<p style="text-align:center;color:#A05050"><a href="http://www.google.com">Go to Google</a></p>
</body>
</html> 

 

Regards

 

 

Thanks Patmap! Now it worked.
 
One more help ..
 
When you close the Main Form, has as direct redirect to another url automatically?
Link to comment
Share on other sites

Hi,

 

I'm not usually the main window, I'm using the page mode( Viewport ), So the user can not close the program unless user want to logout,

And, when my application session time out, I will redirect user to login page.

 

regards

Link to comment
Share on other sites

Hi,

 

I'm not usually the main window, I'm using the page mode( Viewport ), So the user can not close the program unless use want to logout,

And, when my application session time out, I will redirect user to login page.

 

regards

 

Ok Patmap! Thank you for your help.

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

I'm not usually the main window, I'm using the page mode( Viewport ), So the user can not close the program unless user want to logout,

And, when my application session time out, I will redirect user to login page.

 

regards

 

Hi patmap, 

 

could you please, give me an example how to redirect user to login page when session time out.

 

Thank you very much, for your help.

 

Rafael Liriano

Link to comment
Share on other sites

  • 5 years later...

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