Fixed session and timeout error & added fake location function