Logo .id PANDIDokumentasi PengembangPANDI EPP
PANDI · REFERENSI PENGEMBANG EPP

Manajemen sesi

Koneksi memiliki tahapan greeting, login, perintah terautentikasi, dan logout. Kegagalan autentikasi harus diperlakukan terpisah dari kegagalan TLS.

A connection progresses through greeting, login, authenticated commands, and logout. Authentication failures must be distinguished from TLS failures.

Cara kerja

Koneksi memiliki tahapan greeting, login, perintah terautentikasi, dan logout. Kegagalan autentikasi harus diperlakukan terpisah dari kegagalan TLS.

  1. Catat state koneksi dan sesi di sisi server.
  2. Jika sesi terputus, buat koneksi baru dan login kembali.
  3. Jangan kirim operasi mutasi sebelum sesi berhasil login.

How it works

A connection progresses through greeting, login, authenticated commands, and logout. Authentication failures must be distinguished from TLS failures.

  1. Track both connection and session state server-side.
  2. After disconnection, establish a new connection and log in.
  3. Do not send mutations before a successful login.