Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   XMLHttpRequest (https://www.cableforum.uk/board/showthread.php?t=33622904)

Mr_love_monkey 26-10-2007 11:38

Re: XMLHttpRequest
 
for those of you that care...

to get around this what I have done is just have the client code add in the cookie, and add in the value as a seperate request header, i.e.:
Code:

      request.setRequestHeader("Cookie","aParam=aValue");
      request.setRequestHeader("aParam","aValue");

and then on the server side, we check for the cookie first, if it's not there we look the for request header and use that.
It's a hack, and offends me, but hey, what can you do?

Acathla 26-10-2007 11:58

Re: XMLHttpRequest
 
You Sold Out!

Mr_love_monkey 26-10-2007 12:04

Re: XMLHttpRequest
 
Quote:

Originally Posted by Acathla (Post 34422227)
You Sold Out!

I know, I know - it used to be about the code man! - but I've changed, and sold out - now it's just about getting the job done.
Sometimes I don't even know who I am any more.


All times are GMT +1. The time now is 11:54.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum