Is there a maximum length value I can pass in @SetHTTPHeader?
If run:
If I issue the commend:
msg := “SMC=STephen M Christian Developer Long Time; expires=” + @Text(@Adjust(@Now;1;0;0;0;0;0); “S2”);
ans := @SetHTTPHeader(“Set-Cookie”; msg);
@Length(msg)
It shows 75 characters and issuing: JavaScript: alert(document.cookie); I get
If I add one more character:
msg := “SMC=STephen M Christian Developer Long Timfe; expires=” + @Text(@Adjust(@Now;1;0;0;0;0;0); “S2”);
ans := @SetHTTPHeader(“Set-Cookie”; msg);
@Length(msg)
It shows 76 characters and issuing: JavaScript: alert(document.cookie); I get (no change)
Changing it back to 1 less letter and it works again:
msg := “SMC=STephen M Christian Developer Long Timx; expires=” + @Text(@Adjust(@Now;1;0;0;0;0;0); “S2”);
ans := @SetHTTPHeader(“Set-Cookie”; msg);
@Length(msg)
It shows 75 characters and issuing: JavaScript: alert(document.cookie); I get (no change)
So it appears there is a maximum line lenght of 75 characters can anyone find any information on this being documented?
Thanks.