What Is a Session ID in PHP

Q

What Is a Session ID in PHP?

✍: FYIcenter.com

A

A session ID is an identification string of a session. Since there might be multiple visitors coming to your Web site at the same time, the PHP engine needs to maintain multiple sessions concurrently. Session IDs are created and maintained by the PHP engine to identify sessions.

When a visitor comes to your Web site requesting the first PHP page for the first time, the PHP engine will create a new session and assign a unique session ID to this new session. The first PHP page can set some values to the session. When the same visitor clicks a hyper link requesting the second PHP page, the PHP engine will use the same session ID to find the same session created for the first page and give it to the second page. No new session will be created for the second page.

 

Retrieving Session ID from the Current Session in PHP

Retrieving Values Stored in Session in PHP

Understanding and Using Sessions in PHP

⇑⇑ PHP Tutorials

2016-10-26, 1834🔥, 0💬