Hola !!!
alguien podria ayudarme con este codigo:
necesito guardar ciertos datos cuando termina la session en el global.asa(session_end) y no me funciona:
estoy probando con un codigo simple para ver si funciona, cosa que no ocurre.
<script language="vbscript" runat="server">
sub Application_OnStart()
session("variable") = "hola"
end sub
sub Session_OnStart()
end sub
sub Session_OnEnd()
Set Fso = Server.CreateObject("Scripting.FileSystemObject")
tiempotxt ="prueba.txt"
set archivo=FSO.GetFile( Server.MapPath(tiempotxt) )
'Abro el archivo como un flujo de texto; 8: ForAppending, añadimos al final
set f=archivo.OpenAsTextStream(8)
f.WriteLine("chau")
'Cierro el fichero
f.Close
set f=nothing
set archivo=nothing
set FSO=nothing
end sub
</SCRIPT>