Dinamik anında sabit değişkenler oluşturmak için bir yolu var mı?
Fikir sisteme girdikleri, bir kullanıcı fread olurdu küçük bir metin dosyası yüklemek istedi olacaktır, ve sistemin genelinde erişilebilir olacağını var atanmış olmasıdır.
Bu mümkün değilse, sadece temiz olması için, bu değişken sonra sadece o kullanıcı için erişilebilir olması ve oturumu hayatta sadece süre istiyorsunuz?
Burada asıl sorun olan güvenlik, bir oturum değişkeni VAR depolamak için daha pratik olurdu?
Plan:
Data in the db will be encrypted via mcrypt, and the key will be stored on USB thumbdrives. The user will insert the thumbdrive when going to access the system. Upon logging in, the app will prompt the user to upload the key. They will navigate to the thumbdrive and key. Via fopen and fread, the key will be assigned to a global var which will then allow access to encrypted data, and will be used to encrypt new info being entered to the db. When the user logs out, or session times out, the global var will become empty.
Teşekkürler!
NB: var kalıcı ve birçok sayfa üzerinden erişilebilir olması gerekir ve kurabiye dışında.