Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable is undefined: 'Session' 1

Status
Not open for further replies.

jlsmithhartfiel

Programmer
Jan 7, 2002
336
US
Hi!

I'm working with a remote customer site, so am unable to test things at will. I'm hoping someone can give me a direction.

I have an include file which has this:
Code:
function calText(elTarget)
if (showModalDialog) {
  var sRtn;
  sRtn= showModalDialog(&quot;<% response.write Session(&quot;URL&quot;) &
        &quot;tools/calendar.htm&quot;%>&quot;, &quot;&quot;,
        &quot;center=yes;dialogWidth=200pt;dialogHeight=200pt&quot;);
  if (sRtn !=&quot;&quot;)					  
    elTarget.value = sRtn;
}
else
  alert(&quot;Internet Explorer 4.0 or later is required!&quot;)
}
It's appears to be choking on the session(&quot;url&quot;) part. (I've verified that in the page and it's calls, this is the only occurrance of session.)

Now, having this code installed locally and on my webserver, all is well. But on the customer's servers, no dice. So I'm guessing it's a setting in the webserver, but not sure what to check.

Any ideas would be appreciated!
TIA, Jessica [ponytails2]
 
Hi Jessica
it's possible the session state is not enabled

<quote src=&quot;M$&quot;>
To enable session state for an ASP application

In IIS Manager, expand the local computer, right-click the starting-point directory of the application you want to configure, and then click Properties.

Click the appropriate tab: Home Directory, Virtual Directory, or Directory.

In the Application settings area, click Configuration, and then click the Options tab.

On the Options tab, in the Application configuration section, select the Enable session state check box.

In the Session timeout box, click the up or down arrow to set the number of minutes until the session expires.
Click OK.
</quote>

link
_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
hope so! if not let us know we'll keep digging [wink]
_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top