title: ASP Issue: Is it possible to pass session variables as parameters to functions in the Global.asa file?
body: <p>I plan to write the Global.asa file in JavaScript. When a session or application ends, I need changes to be made in a database. Specifically, I need to break up a string and use it in a query in the Global.asa functions. That part doesn't puzzle me at all. Just the part about passing a session variable in as a parameter. I imagine my Global.asa to look something like this:<br></p>
  
  <p>(Let's say the two variables "variable1" and "variable2" were session variables)</p>
  
  <pre><code>&lt;script language="JScript" runat="Server"&gt;
  function Application_OnStart() {
  }
  
  function Application_OnEnd(variable1) {
  }
  
  function Session_OnStart() {
  }
  
  function Session_OnEnd(variable2) {
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>So, I'm not sure if what I'm asking is even feasible. If so, any tips? Keep in mind that I am working in ASP, not ASP.NET. Also, I'm a bit new to using server-side code, so pardon my ignorance.</p>