منتشر شده در ۶ بهمن، ۱۳۹۴

Everything About PHP Sessions
4- SESSION Configurations via htaccess and user ini
١۵ دقیقه ۶ ثانیه

٢۴ ویدیو

توسط پارس کلیک

برای دانلود فایل های تمرینی اول به اینجا روید و اگر نبود به گیت هاب ما روید. بعضی از درس ها فایل تمرینی ندارند.

PHP tireless 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. I help 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. In this course: I'll show you how to store session in data in a MySQL database How to log in returning users automatically We'll begin with an overview of how PHP handles Sessions and stores session data in plain text files on the web server We'll set up a database to store session data more securely I'll show you how to define a class to open and close sessions Read and write session variables to the database Destroy sessions and garbage collect out-of-date records Sessions expire as soon as soon as the browser is closed, but the highlight of this course is an auto-login system that uses a randomly generated single use token that recognizes returning users and preserves their data between visits, even on different computers. I hope you'll find this a useful and challenging project. keeping the user's data always up to date with persistent sessions is extremely convenient. But, and I can't stress this strongly enough, persistent sessions are not 100 percent secure. When using sessions, you should always use a connection over secure sockets layer, or transport layer security whenever possible. I’m going to talk about why always re-authenticate user credentials before allowing allowing access to pages with sensitive content, such as changing user account details.

1- Introduction to PHP Sessions

۷ بهمن، ۱۳۹۴

2- PHP Session and Security

۷ بهمن، ۱۳۹۴

3- What are PHP Session Configurations

۷ بهمن، ۱۳۹۴

4- SESSION Configurations via htaccess and user ini

۷ بهمن، ۱۳۹۴

5- Session Inspection

۷ بهمن، ۱۳۹۴

6- Session Implementation

۷ بهمن، ۱۳۹۴

7- Database Setup

۷ بهمن، ۱۳۹۴

8- Create Database Tables

۷ بهمن، ۱۳۹۴

9- Connect to Database

۷ بهمن، ۱۳۹۴

10- Session Handler Interface

۷ بهمن، ۱۳۹۴

11- Open and Read Methods

۷ بهمن، ۱۳۹۴

12- Write Method

۷ بهمن، ۱۳۹۴

13- Close Method

۷ بهمن، ۱۳۹۴

14- Destroy Session

۷ بهمن، ۱۳۹۴

15- Using Session Handler

۷ بهمن، ۱۳۹۴

16- How Auto Login Works

۷ بهمن، ۱۳۹۴

17- Using Trait

۷ بهمن، ۱۳۹۴

18- Persistent Session Handler

۷ بهمن، ۱۳۹۴

19- Auto Login Class

۷ بهمن، ۱۳۹۴

20- Auto Login Helpers

۷ بهمن، ۱۳۹۴

21- Logging Out

۷ بهمن، ۱۳۹۴

22- Register User

۷ بهمن، ۱۳۹۴

23- PSR-4 Auto Loader

۷ بهمن، ۱۳۹۴

24- Auto Authenticate Users

۷ بهمن، ۱۳۹۴