View Full Version : Classic ASP Session Variables (read in JS)
BryanHood
12-16-2005, 12:38 PM
Is there a way to get access to the Classic ASP Session Variables from within a java script?
If I can't, I will need some kind of workaround for that.
Thank you.
BaldEagle
12-16-2005, 11:37 PM
You cannot get to the session variables directly, however you can use cookies. You could also do this:
<%
Dim myVar
Session("something") = something
myVar = Session("something")
%>
<script type="text/javascript">
var whatever = "<%=myVar%>";
some js code
</script>
Same as inline server code in html.
BaldEagle
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.