continued login mechanism of php