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