# Request Cookie problem in classic asp

**URL:** <https://forum.kirupa.com/t/request-cookie-problem-in-classic-asp/248132>\
**Category:** programming\
**Created:** [January 4, 2008, 5:10am UTC](https://forum.kirupa.com/t/request-cookie-problem-in-classic-asp/248132 "2008-01-04T05:10:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![limcurry87](https://avatars.discourse-cdn.com/v4/letter/l/f1d935/32.png) [@limcurry87](https://forum.kirupa.com/u/limcurry87)\
**Post date:** [January 4, 2008, 5:10am UTC](https://forum.kirupa.com/t/request-cookie-problem-in-classic-asp/248132/1 "2008-01-04T05:10:56Z")

</div>

Hi everybody,

I’ve a problem here.

Seems like i can only request cookie using request.cookie("…") within the \<body\> tag of my asp page. The result in the cookie request can only be directly execute and use in the body, … Where i again want to use the variable within the body to do some checking on the \<script\> tag on top, it deny reading it and i couldn’t go further…

I tried requesting and placing the cookie value into the variable before my \<body\> tag which is in the \<script\> of my ASP instead but it show problem reading that line, and doesn’t response after that…

So is it true that i can only request/get cookie…

\<html\>  
\<script\>  
\<------ but not here??  
\</script\>  
\<body\>  
\<— from here  
\</body\>  
\</html\>

Anybody knows why is it happening?

Thanks alot=)
