2012/8/24 Graeme Gill <grae...@argyllcms.com>: > Wim Dumon wrote: >> 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. > > Hmm. In the context of my application the user isn't in a new > place, they are in the same place but logged in. Presumably > the same confusion would ensue if I changed the URL to have > some simple difference that is the same for all logged in > users, so I may as well let <tracking>URL</tracking> > do the work of keeping things separate for me. >
Compare it to what google does in e.g. gmail: when you hit refresh, you clearly see that the entire application is reloaded. Eventually you arrive in the same location were you where, through what was entered in the address bar. But the session is restarted. Wt makes a distinction between a session (or a session cookie, if used) and a user-logged-in cookie. It's natural to have a logged-in cookie, since that is normally shared between all tabs in a browser. The session tracking mechanism is intended to keep two different instances of your application separated. Compare again to gmail: you don't need to log in if you hit reload or open it a new tab. But as I already said: there is also a method in Wt to not create a new session on reload, but then you have to accept that there is a visible session descriptor in the URL. Best regards, Wim. ------------------------------------------------------------------------------ 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