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 |
What is session_start () in php?
How to convert a timezone from one to another ?
How to get ip address of clients machine?
How many ways I can redirect a PHP page?
9 Answers MicroSec, N-Tier Business Solutions, University Exams,
what are the differences between php and perl
What is $_ request in php?
What is the difference between array_pop() and array_push()?
Do you know what is the function mysql_pconnect() usefull for?
Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?
What is the use of rand() in php?
How many open modes available when a file open in PHP?
what is the use of include() function when include_once() alone will enough?