PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB19] The best way to end a session
[WB19] The best way to end a session
Iniciado por guest, 04,mar. 2015 20:11 - 5 respuestas
Publicado el 04,marzo 2015 - 20:11
Hi,

whats the best way to end a session in WB ?
I use "endprogram()" in a logout button, and the user get a "session ended or it is an error" page, which is not soooo elegant ....

Is there a better way ?
Publicado el 04,marzo 2015 - 21:05
Hi Michael

If you were talking about an awp site, your question would make no sense, as there is no session in those...

Therefore, we should be in the classic/intranet case...

One thing you can do after a log out is to display a static page (page_EndOfSession) with your website design, and a nice message to thank your user, AND a link to start a new session (by linking to your main URL)

Best regards
Publicado el 04,marzo 2015 - 21:42
Hi Fabrice,

but where should I place my "endprogram" ? (It would be nice to free the resources after 10 seconds "good bye users" page)
Publicado el 04,marzo 2015 - 22:10
Hi Michael

I'm using the simple call to the login page, like Fabrice suggested...

Gianni
Publicado el 04,marzo 2015 - 22:30
Hi Michael,

Check this post

Regards,
Piet
Publicado el 05,marzo 2015 - 02:20
Hi Michael...

Quote
Michael Drechsel

(It would be nice to free the resources after 10 seconds "good bye users" page)

Why? Is your server so overloaded that an inactive session for a few minutes is going to be a problem?

If that's the case, then you should worry not about the good user who's going to use the logout button but about all the bad ones who wont...

And therefore managed a short session life and a keep alive in your pages

Best regards