Webpage requires logging in periodically

Webpage requires logging in periodically

I have a layout that requires logging in every couple of days.  Is it possible to write a script that includes the SSO information?