Re: [xwt-users] RPC/servlet session state with XWT?

Emanuele Pucciarelli <[email protected]> Sun, 21 Sep 2003 21:26:27 +0200
Newsgroups gmane.comp.java.xwt.users
Message-ID <[email protected]>
Il dom, 2003-09-21 alle 19:56, Emiliano Heyns ha scritto:
> Hand-coded, or using some sort of framework?

Completely hand-coded, I'm afraid. :(  I haven't found any sort of
suitable framework (and I'm not a Perl expert at all), but I have
realised that implementing logins for different users with different
roles, and session support, is a matter of a few lines.  The drawback is
that I have to always pass the SID as the first argument of every call,
but that can be conveniently hidden with a wrapper function, both in the
server and in the client.

I have actually tried using Apache::SessionX, and it was doing its job
fine, except that *all* session data is stored in a single
Base64-encoded field of a database table.  Therefore, it becomes
unnecessarily hard to detect whether a certain user is going to have
more than one session active, and I've decided to go for the DIY
approach.

--
E.