[Klone-users] Session Question

Stefano Barbato barbato at koanlogic.com
Mon Jul 14 05:25:23 EDT 2008


Hello,

the session_save() function is called by KLone after .kl1 execution so  
you don't have to call it explicitly.

The session will not be saved if:
- you call session_remove() in your .kl1
- you call exit() so klone session_save will not be called after your  
code. Note that the same happens if KLone crashes returning from  
a .kl1 (i.e. there's an error in the page code)
- a klone bug :)

Try to run klone with the -F to be sure it's not crashing. If you can  
run it under gdb or valgrind.

bye,
s




On 14/lug/08, at 10:12, diakat 2000 wrote:

> Hello,
>
> please, can you tell me how the session_save(session) function works.
> Do I need to use this function after each call of session_set() or
> before leaving a web page?
> Is there something I've to consider when using this function? Is there
> a need for initialising a session?
>
> I've took a look at the login/logout example. There is no use of the
> session_save() function, but in my case It seems to be necessary to
> store the content of my session-variables.
> This functions are not described very well in the wiki.
>
> Backround:
> I use the session_set() and session_get() functions very often. But
> sometimes my session_variables are not set correctly.
> There is too much code to post, so I hope I can find the error If I
> understand how the session works.
>
> Many Thanks.
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>





More information about the klone-users mailing list