FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour A question about moving between pages
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
A question about moving between pages
Posted: Thu Aug 08, 2019 06:20 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: A question about moving between pages
Posted: Fri Aug 09, 2019 09:10 AM

Massimo,

Try with this:

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: A question about moving between pages
Posted: Fri Aug 09, 2019 02:49 PM

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.

Continue the discussion