Frank Barknecht wrote: > Hallo, > > in my shop application I'm currently using cookie based sessions, and > this should be the default for security reasons. But if some visitor > has cookies disabled I'd like to fall back on URL-id's. Is this > possible in Webware? When I tried the config option > > 'UseAutomaticPathSessions': 1, > > *all* sessions were put in the URL-path, which is not what I want.
I do this in my SitePage.awake(): if not self.request().hasPathSession(): if self.session().value('nocookies', None) or self.request().fields().has_key('pathsessions'): url = extraURL + '_SID_='+ self.session().identifier() + '/' + self.request().servletURI() if self.request().queryString(): url = url + '?' + self.request().queryString() self.transaction().response().sendRedirect(url) which is similar to what Application.handleMissingPathSession() does. Then I have a note on each page that requires a session that says something like 'Click here to enable a different session method', which links to page?pathsessions=yes . After that, all your relative URLs will continue to work correctly. -- Randall Randall <[EMAIL PROTECTED]> 'Institute regime change everywhere... to "None of the above."' -- Alex Future Bokov ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss