belo Posted March 6, 2013 Posted March 6, 2013 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? Quote
Administrators Farshad Mohajeri Posted March 6, 2013 Administrators Posted March 6, 2013 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. Quote
belo Posted March 7, 2013 Author Posted March 7, 2013 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! Quote
belo Posted March 8, 2013 Author Posted March 8, 2013 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? Quote
patmap Posted March 8, 2013 Posted March 8, 2013 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 Quote
belo Posted March 8, 2013 Author Posted March 8, 2013 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? Quote
patmap Posted March 8, 2013 Posted March 8, 2013 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 Quote
belo Posted March 8, 2013 Author Posted March 8, 2013 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. Quote
rasaliad Posted March 30, 2013 Posted March 30, 2013 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 Quote
Beginner Posted June 20, 2018 Posted June 20, 2018 How find solution? I have problem like this when logout to login form showing dll 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.