How do you register one session ?

Answers were Sorted based on User's Feedback



How do you register one session ?..

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

How do you register one session ?..

Answer / modi[achir communication]

session_register($session_var);
$_SESSION['var'] = 'value';

Is This Answer Correct ?    2 Yes 0 No

How do you register one session ?..

Answer / amit

$_SESSION['username']='ram'

Is This Answer Correct ?    0 Yes 0 No

How do you register one session ?..

Answer / prasad

sessi8on_register

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More PHP Interview Questions

What is the difference between session_unregister() and session_unset()?

0 Answers  


Write a program to display a table of any given number?

0 Answers  


Who is the father of php?

0 Answers  


What type of operation is needed when passing values through a form or an url?

0 Answers  


What is T_PAAMAYIM_NEKUDOTAYIM?

0 Answers  






Which parts of php are case sensitive?

0 Answers  


Does exist in php?

0 Answers  


i have a string and that string contains the alphanumeric value and i want to hide or semihide the 10 digit telephone number from the string.

0 Answers  


What was the old name of php?

0 Answers  


What are the popular content management systems (cms) in php?

0 Answers  


What are the different errors in php?

0 Answers  


What’s the special meaning of __sleep and __wakeup?

0 Answers  


Categories