Branch: Tag:

2012-04-17

2012-04-17 09:06:40 by Erik Dahl <erikd@roxen.com>

Fix so that you make sure the roxen->create_unique_id() is not called twice

Rev: server/etc/modules/Roxen.pmod:1.329

1:   // This is a roxen pike module. Copyright © 1999 - 2009, Roxen IS.   // - // $Id: Roxen.pmod,v 1.328 2012/03/12 12:44:27 rineke Exp $ + // $Id: Roxen.pmod,v 1.329 2012/04/17 09:06:40 erikd Exp $      #include <roxen.h>   #include <config.h>
216:    +"; expires=" + http_date (3600*24*365*2 + time (1)) + "; path=/";   }    - string http_roxen_id_cookie() + string http_roxen_id_cookie(void|string unique_id)   { -  return "RoxenUserID=" + roxen->create_unique_id() + "; expires=" + +  return "RoxenUserID=" + (unique_id || roxen->create_unique_id()) + "; expires=" +    http_date (3600*24*365*2 + time (1)) + "; path=/";   }