Update common.php

fixed set default language.can't to use session before create a new session.