[Klone-users] (no subject)

thomas fossati tho at koanlogic.com
Fri Dec 21 15:02:55 EST 2007


Hi Radek,

On Dec 21, 2007, at 7:21 PM, Radek wrote:
> if (user_kl1.logout) {
> 	if (strcmp(user_kl1.logout, "1") == 0) {
> 		session_del(session, "username");
> 		session_save(session);
> 		user_kl1.username = NULL;
> 	}
> }
>
> I do not know why, but the username is still in session.  I try to
> session_save after session_del, but nothing helps.

could you please check the return code of both session_del() and 
session_save() to see if something goes wrong in one of them ?

If you have configured kloned with the --enable_debug flag, something 
like:

#include <u/libu.h>

if (user_kl1.logout) {
	if (strcmp(user_kl1.logout, "1") == 0) {
		dbg_if (session_del(session, "username"));
		dbg_if (session_save(session));
		user_kl1.username = NULL;
	}
}

would give you the whole error trace (the log sink depending on the 
log.type value in your kloned.conf).

ciao, t.





More information about the klone-users mailing list