update htaccess and session