Cookie Policy

How CodeMaster OJ uses a sign-in cookie and browser storage to preserve settings and work in progress.

Sign-in cookie

The site sets the first-party campus_session cookie to recognize your signed-in session. It is HttpOnly and SameSite=Strict, and uses the Secure attribute in production.

The site sets a browser maximum age of 400 days and renews it when it checks a valid session. That duration applies to the browser cookie. The server manages the session separately. Signing out clears the cookie and revokes that session.

Browser storage

  • Local storage keeps preferences such as language, school selection, editor layout and filters, along with some practice and teaching drafts. It can remain on the device after the browser closes.
  • Tab session storage keeps temporary information such as some code drafts, selected languages, timers and reading positions. It generally lasts for the browser tab session.

Managing storage on your device

You can block cookies or clear site data in your browser settings. Blocking the sign-in cookie can prevent you from staying signed in. Clearing site data can sign you out and remove locally saved drafts and settings. Save important work before clearing site data, and sign out on shared devices.

Privacy Policy