65477/how-can-we-create-a-session-in-php
Hello @kartik,
session_start() function is used in PHP to create a session.
Sample code:
session_start(); //Start session $_SESSION['USERNAME']='Fahmida'; //Set a session value unset($_SESSION['USERNAME']; //delete session value
The above code will enable to create session for each user that logged into your application
Thank you!!
Hello @kartik, I use Privoxy and cURL to scrape Tor ...READ MORE
Hello @kartik, Carry out these usual checks: Make sure session_start(); is ...READ MORE
Hello @kartik, The $GLOBALS array can be used instead: $GLOBALS['a'] = ...READ MORE
Hello @kartik, __CLASS__ always returns the name of the ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Hey, The way by which PHP can assign ...READ MORE
Hii @kartik, The $_REQUEST variable is used to read the ...READ MORE
Hello, You can clone an object and remove ...READ MORE
Hello @kartik, Since the page that is sending ...READ MORE
Hii @kartik, Use the session_set_cookie_params funciton to set the session. If necessary call this function ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.