Page 1 of 1

A question about moving between pages

Posted: Thu Aug 08, 2019 6:20 pm
by Massimo Linossi
Hi.
In one main prg I have a request of login that is validated. Then the user can go in different pages with datas and browses.
I've places a button in the menu for logging out and this clears the string in the cookie so if you
click on main the program launch the login process again. But if you press the previous page different times
you can see the pages that are loaded before. How can I prevent this ?
TIA
Massimo

Re: A question about moving between pages

Posted: Fri Aug 09, 2019 9:10 am
by Antonio Linares
Massimo,

Try with this:

? '<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">'

Re: A question about moving between pages

Posted: Fri Aug 09, 2019 2:49 pm
by Massimo Linossi
Antonio,
I've tried your code and you see that the url seems to be refreshed (in Safari you see the meter below the url)
but the page is the last you saw. If you click on the previous page of the browser in the url there is written
"http://192.168.10.180/samples/BSTUDIO/utenti.prg?reload" but the first lines of code of the prg are not executed
again until you make a manual refresh of the page.