Warning: session_start(): open(/var/lib/php/sessions/sess_a9ihtsbsp3jrrhn5rqqbs4n41o, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// Note: This does have the values problem (complicated values can cause memory leaks) sclass BetterThreadLocal { Map map = newWeakHashMap(); *() {} *(A value) { set(value); } bool isSet() { ret map.containsKey(currentThread()); } A get() { if (map.containsKey(currentThread())) ret map.get(currentThread()); A value = initialValue(); set(value); ret value; } A get(Thread thread) { ret thread == null ? null : map.get(thread); } void set(A a) { map.put(currentThread(), a); } public A initialValue() { null; } }