Téléchargement
illégal
Posez votre question Signaler

Problème variable dans GLOBAL.ASA [Résolu]

Aquel 196Messages postés 28 novembre 2005Date d'inscription - Dernière réponse le 29 nov. 2008 à 11:37
Bonjour,
J'ai un soucis avec le fichier GLOBAL.ASA. J'ai juste testé le tuto de ce site en faisant un copier/coller http://www.commentcamarche.net/contents/asp/aspglobal.php3
ça marche pas, ma variable "nb_connectes" s'affiche "undefined" !
ça commence bien lol. ça parrait tellement simple que je ne voie pas quoi faire d'autre.
MErki :)
GLOBAL.ASA
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
  Sub Application_OnStart
	'Initialisation du nombre de connectés
	Application("nb_connectes") = 0
  End Sub
  Sub Application_OnEnd
  End Sub
  Sub Session_OnStart
		Session("debut") = now()
	Application.Lock
	Application("nb_connectes") = Application("nb_connectes") + 1
	Application.UnLock
  End Sub
  Sub Session_OnEnd
	Application.Lock
	Application("nb_connectes") = Application("nb_connectes") - 1
	Application.UnLock
  End Sub
</SCRIPT>

TEST.ASP
<% Response.Write(Application("nb_connectes")); %>
Lire la suite 

Problème variable dans GLOBAL.ASA »

4 réponses
Réponse
+0
moins plus
up...
Ajouter un commentaire
Réponse
+0
moins plus
up upuupupupupupupupupupup
Aquel- 28 nov. 2008 à 18:04
UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP
Ajouter un commentaire
Réponse
+0
moins plus
Bon ok j'abandonne, vous pouvez effacer le post :(
Ajouter un commentaire
Ce document intitulé « Problème variable dans GLOBAL.ASA » issu de CommentCaMarche (www.commentcamarche.net) est mis à disposition sous les termes de la licence Creative Commons. Vous pouvez copier, modifier des copies de cette page, dans les conditions fixées par la licence, tant que cette note apparaît clairement.
Dossier à la une
Passage au tout numérique : quel coût pour les particuliers ?