Link: Session variables without cookies.
Now there’s a dangerously clever new idea. Use the window.name property to store a JSON object (converted into a string), and it stays there as you navigate from page to page. “What’s this window.name property, I’ve never heard of it?” was my first reaction, but then I recognized it from here: window.open(url, name, features). It’s been read/write since JavaScript 1.1, so I’m assuming this works in IE6, but it hasn’t been tested yet.
Of course this is completely insecure, when your visitor navigates to another site, that site will have access to your data. So it can’t hold sensitive user account information, and it can’t hold preferences that you wish to retain from visit to visit, but I’m sure there’s some sort of interface state data that would be handy to pass between pages, but not critical enough to warrant a back-end solution.
No comments:
Post a Comment