Branch: Tag:

2008-08-18

2008-08-18 13:18:40 by Erik Dahl <erikd@roxen.com>

The prefix added to the RoxenUserID cookie was not usefull for cookie stickiness in load balanced environment

Rev: server/etc/modules/Roxen.pmod:1.247
Rev: server/modules/tags/session_tag.pike:1.24
Rev: server/protocols/http.pike:1.562

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.561 2008/08/15 12:33:55 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.562 2008/08/18 13:18:40 erikd Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
681:    NO_PROTO_CACHE();    if (!(port_obj->set_cookie_only_once &&    cache_lookup("hosts_for_cookie",remoteaddr))) { -  misc->moreheads = ([ "Set-Cookie":Roxen.http_roxen_id_cookie( port_obj ), ]); +  misc->moreheads = ([ "Set-Cookie":Roxen.http_roxen_id_cookie(), ]);    }    if (port_obj->set_cookie_only_once)    cache_set("hosts_for_cookie",remoteaddr,1);