Hello, Ah! The thing that causes problems is 'reload-is-new-session'. Indeed, if you don't have a session identifier in the URL and the user presses reload, the only thing that Wt can possibly use to identify the session is a cookie. But that is shared within the scope of a browser, so it's a bad idea to set reload-is-new-session to true and tracking to Auto. With reload-is-new-session false and tracking=URL, you have the session ID in the URL.
We generally set reload-is-new-session to true, and encode relevant state on where the user is in the application in the URL, so that when the user presses reload, we can use the internal path API to return the user to about the same location in the program. BR, Wim. 2012/8/24 Graeme Gill <grae...@argyllcms.com>: > Wim Dumon wrote: >> That shouldn't happen, in Wt every tab has its own session (and >> related WApplication object). Can you send me your wt_config.xml and >> an example application that demonstrates the problem? You can send it >> to me directly (=off-list). > > Hi Wim, > attached is a simple example. I'm on WinXP and using Seamonkey 2.9.1. > If I start the server, open a tab and connect to 127.0.0.1, I get "Not logged > on". > I then press "I'm user 1" and see that user 1 is logged in. > > If I then open a second tab and connect to 127.0.0.1, I see that I have the > same session > as the first tab. And indeed, if I press "I'm user 2", the go back to the > first > tab and reload the page, it's now user 2 as well. This doesn't happen with > <tracking>URL</tracking>. > > Another odd thing is that each tab takes control of events. The buttons of > the last tab refreshed work, but then the other tabs buttons don't work. > > I did experiment with using WApplication::changeSessionId(), but this seems > to break both cases - it seems to start a new session. > > [I'm content to use <tracking>URL</tracking>, but I was just wondering if > the behaviour of <tracking>Auto</tracking> is intentional or a bug, whether > there is something else I need to do to get it to work.] > > Thanks, > > Graeme Gill. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > witty-interest mailing list > witty-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest