I cannot reproduce the problem. You may need to show more code. Note, 
logout does not destroy the session (it does remove auth from the session, 
though).

Anthony

On Friday, June 8, 2012 3:24:09 AM UTC-4, Annet wrote:
>
> In the user function I have the following lines of code;
>
> if request.args(0)=='login':
>     form.element(_type='submit')['_value']='Login'
>     session.alert='alert-success'
> if request.args(0)=='logout':
>     session.alert='alert-success'
>
> login_next and logout_next  are both set to the cms/index function which 
> starts like this:
>
> alert=[]
>     if session.alert:
>         alert=session.alert
>
> The problem is that in case of login the alert is set correctly, but in 
> case of logout isn't set at all. What's the difference between login and 
> logout that causes this difference in behaviour?
>
>
> Annet. 
>

Reply via email to