Hi Tim, This email from Tommi has some hints:
http://www.mail-archive.com/[email protected]/msg00123.html While doing stuff like that, sometimes I find I am at a page with some directory on the end, like http://mywebsite/directory, when I really just want to do something to the session state then go back to fetch the real page for that session state at http://mywebsite. One way is to call redirect, something like: std::string lang = request.getLang(); std::string lang_suffix; std::string slash_lang_suffix("/"); if (lang.size() > 2) lang.resize(2); if ((lang.size() != 0) && (lang != "en")) { lang_suffix = "?LANG="; lang_suffix.append(lang); slash_lang_suffix.append(lang_suffix); } reply.redirect(slash_lang_suffix); Regards, Mark -- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
