Mysql
 sql >> Teknologi Basis Data >  >> RDS >> Mysql

Login yang sama di 2 situs web

Anda mencari Skrip Sistem Masuk Tunggal menggunakan PHP. Itulah istilah yang perlu Anda cari. Model sederhananya adalah:

Situs:http://auth.local/ :

<?php
  // Get the request.
  // Validate the session.
  // Pass a Secure Hash and log the user in to the main domain.
?>

Situs:http://site1.local/ :

<?php
  // Check if there is a session.
  // If already logged in, no problem.
  // If not, send him back to auth.
  header("Location: http://auth.local/?redirect_to=http://site1.local/");

Situs:http://site2.local/ :

<?php
  // Check if a session is there.
  // If already logged in, no problem.
  // If not, send him back to auth.
  header("Location: http://auth.local/?redirect_to=http://site2.local/");

Lihat jawaban untuk pertanyaan Bagaimana melakukannya sistem masuk tunggal dengan PHP? untuk info lebih lanjut.




  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. Mengembalikan nilai meskipun tidak ada hasil

  2. Looping melalui resultet

  3. Python menyalin tabel MySQL ke SQLite3

  4. Cara Melakukan Full Outer Join di MySQL

  5. batas mysql di dalam grup?