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.
<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.