To remove items from the session, don't simply set their values to None. In 
that case, the key will remain in the session, simply with None stored as 
its value. Instead, to get rid of a given item completely, delete it:

del session.auth

Alternatively, you could change the condition:

if not 'auth' in session:

to:

if not session.auth:

The first will be True only when there is no 'auth' key in session, but the 
second will be True even if there is an 'auth' key in session, as long as 
the value is Falsey (such as None).

Anthony

On Saturday, June 24, 2017 at 4:21:37 AM UTC-4, T.R.Rajkumar wrote:
>
> Now I have ant\other small hitch. When I logout the action logout is 
> called and redirect to login page. 
>
> If I or another user logins in with the same browser window digital 
> signature is not available in grid.
>
> If I close the browser window and open the browser and login _signature is 
> available.
>
> How to get the _signature in the same window after logout/login.
>
> Thank you in advance.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to