Added try catch for redirect and increased session timeout