Bu aptal bir soru biraz olabilir, ama ben bir cepten bir arka plan gelmiyor ve ben hala birkaç kavram ile mücadele gitmeme gibi okuma ve öğrenme ediyorum ancak.
Şu anda PHP 5.3 ile çalışan ve birkaç farklı nesne sınıflarını kullanarak oldukça basit bir giriş desiging ediyorum: Kullanıcı kullanıcıyı tanımlar. Oturum verilerini ve sorguları yapan birisi açtıysa, ve Veritabanı başlar ve korur oturumu.
Benim komut dosyasını çalıştırdığınızda Yani, benim oturum nesne, vb örneği .. burada benim sorunum olsa bulunuyor. Ben sonraki bir sayfadan diğerine taşıdığınızda nasıl o nesne izlenir? Ya da belki daha doğrusu benim soru nasıl PHP siteye giriş başkası değil Girişimle ilgili nesneler mayın olduğunu biliyor ve geliyor?
Ben olmayan bir cepten bir şekilde bu yapıyorum, ben sadece her sayfada oturum çerezi kontrol ve benim veri beynim o işleyebilir gayet bu şekilde, kontrol ediyorum biliyorum. Ama, nerede ve nasıl izlenir nesne veridir.
EG: On each page I want to check if someone is logged in I reference $session->is_logged_in() etc is_logged_in checks the a private variable name is true or false. There's no checking of cookies at this point which means this object still exists, and, as it keeps asking for a stored variable the instance must persist to be useful... but how does PHP, the server, whatever tie that instance of that object to that user? If all of these objects float around on the server till I destroy them won't there be lots of memory used by objects?
Ben muhtemelen gerçekten temel, fundatmental soru başında dedi ama bu benim eureka an henüz değilim, ben geri basit PHP gidebilir.