Originariamente inviato da optime
posta il codice che hai usato
ok:
è qui di seguito:
1)default.asp
codice:
<html>
<head>
<title>
Home Prova
</title>
</head>
<body>
<form action="processa.asp" method="post">
<table align="center">
<tr>
<td>Num1</td>
<td><input type="text" name="num1" size="20"/></td>
</tr>
<tr>
<td>Num2</td>
<td><input type="text" name="num2" size="20"/></td>
</tr>
</table>
<center><input type="submit" value="Esegui"/></center>
</form>
</body>
</html>
2)processa.asp
codice:
<html>
<head>
<title>
Home Prova
</title>
</head>
<body>
<%
dim num1,num2
num1=Request.form("num1")
num2=Request.form("num2")
Session("numeri")=num1*num2
response.write("The session variable NUMERI is " & num1*num2)
%>
Next
</body>
</html>
3)next.asp
codice:
<html>
<head>
<title>
Home Prova
</title>
</head>
<body>
<%
session.timeOut = 60 'minuti
%>
Last!
</body>
</html>
4)last.asp
codice:
<html>
<head>
<title>
Home Prova
</title>
</head>
<body>
<%
Response.Write(Session.Contents("jazz"))
%>
</body>
</html>
e il globa.asa è:
codice:
<script LANGUAGE="VBScript" RUNAT="Server">
Sub Application_OnStart
End Sub
Sub Application_OnEnd
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
End Sub
</script>