https://i.imgur.com/XaShdHw.png
having it multiple time in witz don't affect the way __identity__ work. Same goes for __js_identity__.
Quote:
Backwards compatibility - does it break something?
Here is the old code :
String GetIdentity(const Renderer *r)
{
// This ugly hack expects that __identity__ is always present in r->var
Http *http = const_cast<Http *>(dynamic_cast<const Http *>(r));
if(!http)
throw Exc("invalid POST identity call");
String s = http->var[0];
if(s.GetCount())
return s;
s = AsString(Uuid::Create());
http->SessionSet0("__identity__", s);
http->var[0] = s;
return s;
}
it expect to have __identity__ at index 0. It's not always true (expectially when we use external libs to send data via Javascript).
the new code do the same think but lookup for it. I don't think regression could occure