[Klone-users] (no subject)
Stefano Barbato
barbato at koanlogic.com
Sun Dec 23 05:51:22 EST 2007
Hi Radek,
On 21/dic/07, at 19:21, Radek wrote:
> I do not know why, but the username is still in session. I try to
> session_save after session_del, but nothing helps.
>
> $ cat /tmp/klone_sess_882326a5f03f595bf2878991a23535ac_16777343
> username=radek
>
> I also try to replace session_save with session_clean. But no
> success ro.
that's a bug. KLone wrongly skips the session saving step if no
variables are set but that's exactly what is needed to delete the last
variable from the current session...
save the attached patch (session_del_fix.patch) in the KLone top-
directory (where the klapp.mk file is stored) and add the following
line to the Makefile:
KLONE_TARGET_PATCH_FILE = $(CURDIR)/session_del_fix.patch
then rebuild all with "make clean && make".
If you don't want to patch/rebuild klone a fast workaround would be to
add a dummy variable to the session before deleting the "username" var:
session_set(session, "dummy", "1"));
session_del(session, "username"));
or use session_remove(session) to remove the whole session.
Note that KLone calls session_save automatically so you can avoid
calling it yourself.
bye!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: session_del_fix.patch
Type: application/octet-stream
Size: 540 bytes
Desc: not available
Url : http://koanlogic.com/pipermail/klone-users/attachments/20071223/48bc2bb2/session_del_fix.obj
-------------- next part --------------
More information about the klone-users
mailing list