Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

> EUREKA !!!, to cookie hell and back ...
SirAndy
post Nov 9 2003, 09:02 PM
Post #1


Resident German
*************************

Group: Admin
Posts: 41,642
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



alright. i fixed the cookie problem. took me only a few days. i'm tired now ...

ok, here it is in a nutshell:

- cookies are send to the client computer within the HTTP-Header.
- a http-header can NOT be send after any other data has been send to the client. (hence the name HEADER).
- if you attempt to send a cookie AFTER the header was sent, you either (on good systems) get a error message OR the cookie request will be ignored.
- for sloppy/stupid/unexpierienced/stupid/stupid programmers, there is a workaround where you can cache all web-page data in a buffer and if that web-page contains any header/cookie specific calls, those will be collected and send first, then the rest of the page. this is done by the web-server.
- this allows for really shitty code to actually work.
- this is what the guys who made our BBS code were doing. (IBF forums)


so, all i had to do was to set the "i'm a dumb-ass programmer" flag in the server settings,
and voila! it works again ...
Andy
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th May 2024 - 12:31 PM