cookies

S

spiderman

From client-side javascript, how can one extract dictionary cookies made by
VBScript ? Thank you.

Dictionary cookies are made like
<%
Response.cookies("MyCookie")("username") = "John"
Response.cookies("MyCookie")("dept") = "Sales"

.... %>
 
E

Evertjan.

spiderman wrote on 06 aug 2004 in
microsoft.public.inetserver.asp.general:
From client-side javascript, how can one extract dictionary cookies
made by VBScript ? Thank you.

Dictionary cookies are made like
<%
Response.cookies("MyCookie")("username") = "John"
Response.cookies("MyCookie")("dept") = "Sales"

... %>

<script type="text/javascript">
var username = "<%=request.cookies("MyCookie")("username")%>"
var dept = "<%=request.cookies("MyCookie")("dept")%>"
</script>

[I am sure you dit not mean to do it this way,
however it is the easier way]
 

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
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top