codejoust/session.js — Issue #16: Reapparance of meltdown after deleting cookies
Author: x909
Created: 2012-01-18 18:12:42+00:00
State: open

Unrelated to this project I happened to delete all of my browser's cookies in Chrome. When I returned to testing the project that uses session.js (latest release of course), however, I started getting all kinds of errors such as:

Uncaught TypeError: Cannot set property 'version' of null
@line 371

as well as particular errors for various session attributes unless I first checked to make sure they weren't 'undefined', e.g. 'window.session.location.address.city', etc.

. . .

Just checked this in Firefox and the same thing is happening there too after I delete all cookies there. The session cookie is re-created in both browsers but the location cookie is not re-created.

This is an issue that I thought was fixed a couple of patches back. Maybe it only appeared to be fixed and has simply become more apparent now.

In Firefox, Firebug reports

obj is null
obj.version = API_VERSION;

@line 371