SwitchUp SwitchUp Ranked Best Coding Bootcamps 2025

How to stay logged in on both www.domain.com and domain.com?

Altcademy Team wrote on 7 February 2018

When you are setting the cookie on browser, pass .domain.com to the domain attribute of the cookie, so that the cookie will be accessible by all subdomains.

You can forward all requests to domain.com to www.domain.com, usually in your DNS settings.

Trusted by

Students and instructors from world-class organizations

Join the upcoming Cohort #110

Enroll for February 2nd, 2026