[thelist] Reading an ASP cookie on another application server

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Wed Aug 18 14:01:43 CDT 2004


Hi Chris,

	Actually, I was thinking that -- in the process of doing other
stuff -- your CF page could simply make a request to, say,
"cookie.asp?cookieKey=mygibberish" and the page would return the value
of the "mygibberish" cookie that was set in ASP.

	If you're going to get rid of ASP eventually, then this solution
would be perfect, since you'll only need it as long as the cookie is
being set in ASP.

Peter

-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of Chris Hayes

Hi Peter

I'm not sure what you mean exactly but if you're suggesting cflocation
to an asp page, then response.redirect back to CF with the result, well
this is my last  resort.  At the end of the day, I'm going to want rid
of ASP and IIS.

Javascript, is actually quite happy, I can location.href the value to a
resulting page, display the value on the same cf page as the direct
cookie output and it's fine.

ie

    #cookie.testASPset# = gibberish
    #url.the_same_cookie_vlaue_retrieved_by_javascript# = perfect!!

of course document.write the javascript retrieved cookie works too, I
just wanted to see ColdFusion output the same thing

It's just CF that won't read the value in ?!?

Chris

----- Original Message ----- 
From: "Peter Brunone (EasyListBox.com)" <peter at easylistbox.com>
>
> Wow.  So it has NO idea what it's printing out...  I think I finally 
> understand the depth of the problem :)
>
> Can you do an HTTP GET request from CF?  If so, you could create a 
> small .asp file that simply says
>
> <%=Request.Cookies(Request.Querystring(cookieKey))%>
>
> and then wrap a GET to that file in a small function which you could 
> call in your CF pages.
>
> Any chance that would work for you?
>
> Peter
>
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org On Behalf Of Chris Hayes
>
> >From: "Peter Brunone (EasyListBox.com)" <peter at easylistbox.com>
> >    Can you paste the output (including unprintable characters) into 
> >the
> form at
> > http://aspalliance.com/peterbrunone/analyzethis/analyzethis.asp
>
> Using UTF-8 output encoding on the page:
>
> Position Character ASCII Value
> 1 b 98
> 2 o 111
> 3 b 98
> 4 (SPACE) 32
> 5 - 45
> 6 (SPACE) 32
> 7 & 38
> 8 # 35
> 9 6 54
> 10 5 53
> 11 5 53
> 12 3 51
> 13 3 51
> 14 ; 59
> 15 & 38
> 16 # 35
> 17 6 54
> 18 5 53
> 19 5 53
> 20 3 51
> 21 3 51
> 22 ; 59
> 23 & 38
> 24 # 35
> 25 6 54
> 26 5 53
> 27 5 53
> 28 3 51
> 29 3 51
> 30 ; 59
>
> > >----- Original Message -----
> > >From: <chris at martiantechnologies.com>
> > >
> > >> Chris
> > >>
> > >> > I'm trying to read some cookies set an an ASP (not .NET)  
> > >> > server on a
> CF
> > >> > server on the same domain.  When I read the cookies in CF I'm 
> > >> > getting gibberish back.  The ASP is of course reading them back

> > >> > fine.
> Naturally
> > >I'm
> > >> > suspecting character encoding
> > >>
> > >> What values do the cookies have on the client machine, and can 
> > >> you post
> > >the gibberish that you're seeing?




More information about the thelist mailing list