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
How do you remove duplicates from an array?
What is the difference between md5(), crc32() and sha1() crypto on php?
Which one is best framework for php?
How to get no. of rows using MYSQL function?
What is namespaces in PHP?
What is meant by session in php?
What is the use of nl2br() in php?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the difference between runtime exception and compile time exception?
Explain how can we execute a php script using command line?
How to invoke a user function?
How can I load data from a text file into a table?
Why php 7 is faster?
Explain the changes in php versions?
What does a special set of tags do in php?