質問
Application Variable in ASP
Afternoon all, Would be grateful if you could confirm, or
correct below - I know how to set a session variable in ASP, in the
example below i'm trying to set EMPLOYERID to the value of 2
<%Session("EMPLOYERID") = "2"%>
This works fine - for twenty minutes then the session dies and all hell breaks lose, with this in mind, i believe that i need to use a Application Variable instead and therefore was wondering whether the below is the correct way of setting an application variable -
<%Application("Employer") = "2"%>
Thanks for your help
<%Session("EMPLOYERID") = "2"%>
This works fine - for twenty minutes then the session dies and all hell breaks lose, with this in mind, i believe that i need to use a Application Variable instead and therefore was wondering whether the below is the correct way of setting an application variable -
<%Application("Employer") = "2"%>
Thanks for your help
