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

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top