Web2py uses server side sessions; so it is not possible to do this.
What you can do, however, is call a controller function which sets the
session variable.

On Nov 21, 1:54 pm, beroz <[email protected]> wrote:
> Hello,
>
> How could I set value for a variable in session in javascript
> function?
> Example:
>
>     image1.element(_type='submit')['_onclick'] ="javascript:
> {{session.x = 5}}"

Reply via email to