Default [Q] wifi connection times out when using browser login

Hello. I've been having issues connecting to my school wifi which is a browser login. I can connect fine to open and router login networks though. It usually lasts about 3 minutes. Does anyone know how to fix this?