A question about moving between pages

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

A question about moving between pages

Postby Massimo Linossi » Thu Aug 08, 2019 6: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
User avatar
Massimo Linossi
 
Posts: 495
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: A question about moving between pages

Postby Antonio Linares » Fri Aug 09, 2019 9:10 am

Massimo,

Try with this:

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41449
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: A question about moving between pages

Postby Massimo Linossi » Fri Aug 09, 2019 2: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.
User avatar
Massimo Linossi
 
Posts: 495
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 11 guests