seting Session values in global.asa

Results 1 to 2 of 2

Thread: seting Session values in global.asa

  1. #1
    David North Guest

    Default seting Session values in global.asa

    Is there anything wrong with this script which is in a global.asa file?<BR>The value "started" isn&#039t available in any of the pages, if I set a session variable in an asp page it gets passed between pages but setting one in the global.asa dosn&#039t work<BR><BR>&#060;script language="vbscript" runat="server"&#062;<BR>sub Session_OnStart<BR>Session("started")=now()<BR>end sub<BR>&#060;/script&#062;<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: seting Session values in global.asa

    Code looks fine. Is it possible the Global.asa file is in a different virtual directory than the pages from which you are trying to access the Session value? Remember, each virtual directory is a separate Application and so has separate Application *and* Session values. (Apologies if I&#039m preaching to the choir.)<BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts