How do you register one session ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / modi[achir communication]
session_register($session_var);
$_SESSION['var'] = 'value';
Is This Answer Correct ? | 2 Yes | 0 No |
Explain mysql_errno()?
What is use of echo in php?
What is a php web application?
What is warning – “cannot modify header information – headers already sent”?
Explain the visibility of the property or method?
Does php pass arrays by reference?
How can we know the number of days between two given dates using PHP?
8 Answers AZTEC, HCL, Navsoft,
What advance thing in php7?
Tell me how is it possible to know the number of rows returned in result set?
How can I make a script that can be bilanguage (supports English, German)?
What are the methods useful for method overloading?
What are include() and require() functions?