
12/01/2005, 09:19
|
| | Fecha de Ingreso: diciembre-2004 Ubicación: argentina
Mensajes: 14
Antigüedad: 20 años, 4 meses Puntos: 0 | |
Problemas con asp 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> |