From: Ben G. <be...@ja...> - 2005-09-06 16:24:08
|
Abbett, Jonathan wrote: > I get a null pointer exception whenever I try to "put" a session > variable with a null value. Is this expected behavior? How should one > remove a single variable from the session store? If you look at the code in server/php/java/bridge/Session.java, you'll see that put() expects two objects, so putting "null" will always throw that exception. $session->remove("key") will remove a variable. > With that in mind, a full explanation of how to use the bridge's Java > session store is in order. The code snippet on the website only > scratches the surface. What are all the available methods? So far, > I've encountered isNew(), put(), get(), destroy(), and setTimeout(). > > In general, the bridge's documentation could use a lot of work. I'd be > willing to help flesh it out and make it more formal, though I don't > have a lot of experience documenting open source software. Perhaps > using a wiki would help, so it could be more of a collaborative effort? I'd be happy to contribute to a documentation wiki. I even have some server space to set one up, if need be. The bridge works great, but documentation is definitely on the "Use the source, Luke" side :) Cheers, -- Ben |