Author Topic: How to initiate a session in PHP?  (Read 37 times)

thejewelrysource

  • Hero Member
  • *****
  • Posts: 1244
  • Welcome to Digital Marketing Forum!
    • View Profile
How to initiate a session in PHP?
« on: September 05, 2021, 01:05:33 pm »
How to initiate a session in PHP?

Makoo

  • Hero Member
  • *****
  • Posts: 725
  • Welcome to Digital Marketing Forum!
    • View Profile
Re: How to initiate a session in PHP?
« Reply #1 on: February 03, 2022, 10:07:13 am »
A Session is a method of storing temporary data within web browser. A session is temporary by nature and can be used to store temporary state information, or a set of user interface parameters across page requests. Sessions are of particular interest to web developers given the applications of cookies to HTTP, where each browser request sends the cookie back to server with each request. There are also security benefits to using sessions. Cookies are often encrypted using SSL, while sessions typically use transport-layer encryption; therefore a session can be considered somewhat more secure than a cookie (especially if the server is configured properly).

laragiles2021

  • Sr. Member
  • ****
  • Posts: 430
  • 3d scanner manufacturers in India
  • Location: India
    • View Profile
    • Edge 3D
How to initiate a session in PHP?
« Reply #2 on: February 07, 2022, 01:09:28 am »
To begin a new session, simply call the PHP session_start() function. It will create a new session and generate a unique session ID for the user. The PHP code in the example below simply starts a new session.

 

Digital Marketing Forum is a do-follow forum, post and discuss IT topics here and get dofollow signature. Discuss about SEO, SMO, Directory Submission, 301 redirection, robots, social bookmarking, Web design and development.