cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount
Session Oggetto usato per mantenere lo stato di ogni utente: mantiene le informazioni del client che accede a un'applicazione. Le variabili memorizzate nell'oggetto Session sono denominate variabili di sessione. L'oggetto Session identifica univocamente i client per mezzo dei cookie, o, qualora siano disattivati, con loro simulazione. Ad ogni nuovo client in visita viene assegnata un'istanza dell'oggetto Session, identificata dal SessionID che viene memorizzato sia sul server che sul client (in un cookie)

ID = Session.SessionID

Uso delle variabili e delle array:

Session("nome var")=valore
variabile=Session("nome var")

Session("nome array")=array
variabile=Session("nome array")(indice)

L'oggetto Session fornisce due collection che contengono le variabili di sessione:

Contents: variabili di sessione
StaticObjects: oggetti di sessione

<%@ Language=VBscript %> <% Option Explicit %> <% Response.Write "Ci sono " & Session.Contents.Count & "variabili di sessione.<P>" Dim Nome, I For Each Nome in Session.Contents If IsArray(Session(Nome)) then For I = LBound(Session(Nome) to UBound(Session(Nome)) Response.Write Nome & " (" & I & ") " & Session(Nome)(I) & "<BR>" Next Else Response.Write Nome & "-" & Session(Nome) & "<BR>" End If Next For Each Nome in Session.StaticObjects Response.Write Nome & "<BR>" Next &>

cautele

L'oggetto Session � pesante se ci sono molti utenti: 1) non mettere oggetti 2) attenzione al TimeOut 3) limitare le variabili di sessione


Per gestire gli eventi occorre creare il file Global.asa