the problem is when i open a second tab, it copies the session.id and doesn't recognize the new page_id
basically what i want is a diferrent session.id[page_id] for each tab i open On Feb 1, 5:19 pm, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > session.id = session.id or {} > session.id[page_id]=session.id.get(page_id,str(request.now)) > > On Feb 1, 9:59 am, Francisco Costa <m...@franciscocosta.com> wrote: > > > > > > > > > I want something like this: > > > if not session.id[page_id]: > > session.id[page_id]=str(request.now) > > > but i get this error: KeyError: '74' > > > I want to validate if a dynamic variable exists.. if not I want to > > create it and to get the time > > > On Feb 1, 4:17 am, Jason Brower <encomp...@gmail.com> wrote: > > > > You can do that. At the top of the default.py or what ever you are using, > > > place something like... > > > session.pages[request.page] = True > > > or how ever you want to do it. Just make sure because it is a dictionary > > > that you blank it or initialize it befor asigning anything to it. > > > > ----- Original message ----- > > > > Hello, > > > > I want to have dinamic session variables like this: > > > > session.id > > > > where id is different from page to page.. > > > > > I've tried > > > > id = variable > > > > session.id > > > > > and > > > > session.id['variable'] > > > > > without any results. > > > > > I would like to be able to open different pages at the same time and > > > > the browser could get all the session variables.- Hide quoted text - > > > - Show quoted text -