Mailinglisten-Archive |
RewriteEngine On RewriteRule ^[0-9a-z]{32}/(.*)$ /$1 [L] <?php function session_start_from_rewrite() { global $HTTP_HOST, $REQUEST_URI; ereg("/([0-9a-z]{32})",$REQUEST_URI, $regs); $session_id = $regs[1]; if(!isset($session_id) || empty($session_id)) { srand((double)microtime()*1000000); $session_id = md5(uniqid(rand())); $destination = "http://$HTTP_HOST/$session_id$REQUEST_URI"; header("Location: $destination"); } session_id($session_id); session_start(); } session_start_from_rewrite(); ?>
php::bar PHP Wiki - Listenarchive