Page MenuHomeDevCentral

Store fomat in localStorage or send cookie through JS
Open, LowPublic

Description

Warning: Cannot modify header information - headers already sent by (output started at /var/wwwroot/default/themes/RalfFallsIntoFoundation/header.php:12) in /var/wwwroot/default/wikimedia/write/sourcetemplatesgenerator/index.php on line 10

Three solutions:

  • have a mechanism to execute code before the header
  • send the cookie through JS
  • use local storage through JS

A benefit to use local storage is we also store other information like history in the future.