مشخصات فیلم
-
1801
-
1598
-
0
-
0.0
-
0
دانلود فیلم آموزش Managing PHP Persistent Sessions
Lynda Managing PHP Persistent Sessions
مدرس:David Powers
نشست های دائمی php امکان ارتباط بین server و client را فراهم می آورند. این قابلیت موجب می شود که اپلیکیشن های وب، هویت ویزیتورها و یا هرگونه متغیر یا داده ای را به خاطر داشته باشند. این دوره ی آموزشی عملی چالش برانگیز و پروژه محور به توسعه دهندگان کمک می کند که به داده هایی دسترسی داشته باشند که php به طور معمول در فایل های ساده ی متنی نگهداری نموده، و آن ها را در database های امن تر می نویسد. در این database، رکوردها بسته به نیاز یا خوانده می شوند و یا اینکه از بین می روند. در این ویدئو، مدرس به شما کمک می کند که یک دیتابیس SQL را ایجاد نمایید، کلاس هایی را برای باز و بسته کردن نشست ها تعریف کنید، متغیرها را بخوانید و یا بنویسید، جلسات را از بین ببرید، و رکوردهای تاریخ گذشته را مدیریت نمایید.
سرفصل های دوره:
- پیکربندی نشست ها
- بررسی چگونگی ذخیره سازی داده های نشست ها
- پیاده سازی نشست های دائم
- ایجاد یک دیتابیس SQL برای ذخیره ی داده های نشست
- بستن و از بین بردن نشست ها
- احراز هویت کاربران
- ایجاد یک سیستم auto-login با استفاده از نشست های دائم
- و…
PHP persistent sessions allow for communication between the server and client. This allows web applications to remember the identities of visitors as well as any variables or other data. This practical and challenging project-based course will help developers take the data that PHP normally stores in plain text files and write them into a more secure database, where the records can be read and destroyed as needed. Author David Powers helps you set up a SQL database, define classes to open and close sessions, read and write variables, destroy sessions, and manage out-of-date records. The lessons culminate in a short project that uses tokens to recognize returning users in an auto-login scenario. Topics include: Configuring sessions Inspecting how session data is stored Implementing persistent sessions Creating a SQL database to store session data Implementing the PHP SessionHandlerInterface riting session data Closing and destroying sessions Creating an auto-login system with persistent sessions Creating persistent logins Checking out visitor credentials Authenticating users Logging out users selectively Introduction Welcome What you should know before watching this course Using the exercise files Sessions in Google Chrome 1. Sessions and Security How PHP sessions work Configuring session Changing session defaults Inspecting how session data is stored Implementing persistent sessions 2. Preparing the Database Creating a database and user account in MySQL Defining tables to store session data Connecting to the database 3. Storing Session Data in MySQL Implementing the PHP SessionHandlerInterface Opening a session and reading stored data Writing session data Closing the session and garbage collection Destroying the session Setting the session handler 4. Creating an Autologin System How the autologin system works Using a trait to define common properties Extending the MysqlSessionHandler class Creating a persistent login Checking a returning visitor's credentials Logging out 5. Testing the Autologin System Generating a unique key when registering users Using a PSR-4 class autoloader Authenticating the user Revalidating credentials for sensitive areas Logging out selectively Conclusion Final thoughts