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 |
How to track user logged out or not? When user is idle?
Is set in php?
Write a select query that will be displayed the duplicated site name and how many times it is duplicated?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
Explain what is smarty?
What are headers in php?
What is the use of trim function in php?
Explain the difference between $var and $$var?
How can we encrypt and decrypt a data present in a mysql table using mysql?
What does the unlink() function mean?
what is PHP accelerator ?
Please explain is it possible to use com component in php?