FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Problem with page under login
Problem with page under login
Débuté par Mimmo Ghiara, 24 sep. 2019 12:13 - 4 réponses
Connectez-vous…
Mimmo Ghiara
#1
Posté le 24 septembre 2019 - 12:13
Hello to all,
how can I prevent a user from having to refresh the page by copying a URL address? I'm better off if the session needs to be protected by login if I copy the address and re-paste it after 10 min back to the page without logging in.
It is possible to avoid this
Thanks
Regards
Signaler
0
0
Moiss
#2
Posté le 11 octobre 2019 - 16:57
Hi,
Your site must be dynamic not awp. In the description of the project, Project.
And you need to activate the prevention of using the browser backspace key. In the project description, Advanced.
Or by adding a global variable at the project level and filling in the login when it is correct and on each page validate that variable, if the variable is empty, you return it to the login.
Regards,
Signaler
0
0
Mimmo Ghiara
#3
Posté le 14 octobre 2019 - 14:39
Thanks for the help but I have a doubt about the use of global variables.
I have defined some global variables at project level but if the pages vary or I try to pass it to another page the debugger gives me a warning saying that I am doing an incorrect operation "Warning: Declaration of global variable 'gnCurrentUserID' hides global variable 'gnCurrentUserID' of project.
PAGE_user_homePage, Global declarations, line 1, column 67
"
So I shouldn't pass the variable, but if not the gnCurrentUserID step equals zero
Thanks
Signaler
0
0
Moiss
#4
Posté le 15 octobre 2019 - 19:22
it's awp you should use declareawpcontext and you shouldn't have equal variables with the same name,
paste your code in the forum, to see more detail
Signaler
0
0
Mimmo Ghiara
#5
Posté le 18 octobre 2019 - 15:24
Thank's
I declare
ConfigureAWPContext(ctxDisk, ctxIDCookieURL)
DeclareAWPContext(gbForceStandardBrowser,gnCurrentUserID,garrAttachedFiles)
in global procedure
and declare
gnCurrentUserID is 8-byte int
in the login process, when the user is logged in correctly the gnCurrentUserID becomes the same as the user's id, the program then goes to the PAGE_user_home page, but the gnCurrentUserID variable is zero.
I must say that anyway I didn't understand correctly how awp works
Thanks
Mimmo
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte