How do you register one session ?

Answer Posted / harjeet

session_register()

e.g.
$user="Username";
session_register("user");


or more preferred way is
$_SESSION['user']="username";

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of in_array() function in php?

537


What is a stored procedure in mysql?

531


How to download and install php for windows?

551


What is htmlentities function in php?

504


How check field is empty or not in php?

539






What is stdclass in php?

544


What is the best way to change the key without changing the value of a php array element?

550


What is __ invoke in php?

457


What is the actually used php version?

520


What is the function file_get_contents() useful for?

484


What is array filter in php?

554


Tell me whether it is possible to share a single instance of a memcache between multiple php projects?

537


What are php applications?

509


Do you know what are traits?

532


What is php session start?

523