every browser considers tabs as belonging to the same session in regards to 
cookies. there's no way to separate those using web2py code.
you can leverage sessionstorage in javascript that keeps values alive - and 
compartimentalized - to a single living tab.

On Friday, February 19, 2016 at 4:56:21 AM UTC+1, Jim S wrote:
>
> Hi
>
> Is there a way to keep independent session variables between two open 
> browser tabs?
>
> Example
>
> 1.  write a session variable in tab 2
> 2.  switch to tab 1 and execute the same page setting the session variable 
> to a different value
> 3.  go back to tab 2 and request page that reads the session variable and 
> gets the value set from tab 1
>
> Is there any way to force each tab to have it's own session variables?
>
> -Jim
>

-- 
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