Global.asa problem

Results 1 to 3 of 3

Thread: Global.asa problem

  1. #1
    Join Date
    Dec 1969

    Default Global.asa problem

    I have the following global.asa definition butthe session variables aren&#039;t being retrieved by the other files / scripts within its folder. Can you see anything wrong with my code as I don&#039;t.<BR><BR>[code language="VBScript"]<BR><BR>&#060;!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.5 Library" UUID="{00000205-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"--&#062;<BR>&#060;!--METADATA TYPE="TypeLib" NAME="Microsoft CDO for Windows 2000 Library" UUID="{CD000000-8B95-11D1-82DB-00C04FB1625D}" VERSION="1.0"--&#062;<BR><BR>&#060;SCRIPT LANGUAGE=&#039;VBScript&#039; RUNAT=&#039;Server&#039;&#062;<BR><BR>Sub Session_OnStart<BR> &#039;Set the server locale<BR> Session.LCID = 2057<BR> <BR>&#039; Session("strPSICon") = "DRIVER={SQL Server};SERVER=ipsweb;DATABASE=********;UID=****** **;PWD=********;Regional=Yes"<BR> Session("strPSICon") = "DRIVER={SQL Server};SERVER=********;DATABASE=********;UID=**** ****;PWD=********;Regional=Yes"<BR> Session("strOLTCon") = "DRIVER={SQL Server};SERVER=********;DATABASE=********;UID=**** ****; PWD=********; Regional=Yes"<BR><BR> session("emailcontactsto") = "********"<BR> session("emailConvertToOrder") = "********"<BR><BR> &#039; Mail server parameters for sending mail using CDO<BR> Session("cdoSMTPServer") = "*********"<BR> Session("cdoSMTPServerport") = "25"<BR> Session("cdoSendUserName") = "********"<BR> Session("cdoSendPassword") = "********"<BR><BR>End Sub<BR><BR>&#060;/SCRIPT&#062;<BR><BR>[/script]<BR><BR>Any ideas?

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Really??

    So you saying you are trying to response.write the values and they are blank??<BR><BR><BR>Se the values in the some page and see if they are avail on the same page? do you have ENABLESESSIONSTATE set to false??<BR><BR>

  3. #3
    Join Date
    Dec 1969

    Default RE: Really??

    If session state&#039;s disabled at IIS level, you get an error while attempting to execute anything involving the Session object. Not sure what happens if it&#039;s disabled at the page level.<BR><BR>Craig.

Posting Permissions

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