[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-06 Thread Dave S
On Wednesday, October 5, 2016 at 10:44:30 PM UTC-7, Meinolf wrote: > > Ok, i was first storing the current session id from some insert statement, > thanks now i can just access it directly from response.session_id. > > I guess my logic is wrong since i am running all these queries in the same

[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-05 Thread Meinolf
Ok, i was first storing the current session id from some insert statement, thanks now i can just access it directly from response.session_id. I guess my logic is wrong since i am running all these queries in the same function, i end up inserting the current session_id and testing it against

[web2py] Re: Web2py Update records only if user is signed in with a different session from previous

2016-10-04 Thread Anthony
On Tuesday, October 4, 2016 at 3:16:06 AM UTC-4, Meinolf wrote: > > Hi there, > > I need to update my table record only if the user is logged in with a > different session from the previous, but with the code i have, it keeps > updating when i thought the user still logged in with the same