session expire redirect bug fixed