PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB19 and endprogram
WB19 and endprogram
Iniciado por guest, 06,ene. 2015 08:42 - 3 respuestas
Publicado el 06,enero 2015 - 08:42
Hello

Best wishes for 2015 !!!
Lets hope we have fun with WX 20 ;):)
In my website i use this code to end the website

PageDisplay(PAGE_End)
EndProgram()

On the PAGE_End i have a link to start my website again
But of course i always get the message "end of session" and the possibility to restart the website.

How can i achieve to restart my website without this message??

i don't use groupware..

TIA
Jan
Publicado el 06,enero 2015 - 09:25
Hi Jan,

From browser side code in the click button to restart website I see two options: (NOT Server side code)
- Open a link to the start (awp or dynamic) url of your website
- Execute a DynamicSiteDisplay() (Make sure the page is flagged to be launched like that in the 7 tabs)

All the best,

Peter H.
Publicado el 06,enero 2015 - 15:35
Hi Jan,

If I use:
Logoff_User() HCloseConnection(ct_MyConnection) PageDisplay(PAGE_Logout) EndProgram()
I never get a message about end of session.
PAGE_Logout is a static page with a button that has the action "Display the 1st dynamic project page".
Works like a charm.

Regards,
Piet
Publicado el 07,enero 2015 - 22:17
Thanks Peter en Piet

Piet's solution worked for me

TIA
:cheers:
Jan