Type Mismatch Session

Joined
Mar 16, 2010
Messages
1
Reaction score
0
Hi i have written a vbscript to get the computer name so i have created a shell object to get the required output. Now i need to store tht output in a session to carry on to many pages. I got the error as Type Mismatch session Below is my code,

<script language="vbscript">
set shell = CreateObject("WScript.Shell")
computername = shell.ExpandEnvironmentStrings("%COMPUTERNAME%")
<%Session("Comp1")%> = computername ' IN THIS LINE I got the error as Type Mismatch session
document.Write <%Session("Comp1")%>

</script>

Any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top