How do you register one session ?

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


Please Help Members By Posting Answers For Below Questions

What is the use of addslashes in php?

535


What is php default argument?

549


What is str_replace()?

549


What is php used for?

542


A process can run only in the background. State Whether True or False?

629






What is the difference between indexed and associative array?

516


What is exception handling in php?

1085


What is symfony php?

538


What is the difference between overloading and overriding in php?

550


Tell me what is the difference between ereg_replace() and eregi_replace()?

558


What are php errors?

502


How to find length of an array in php ?

571


What are variables in research examples?

575


What is php pathinfo?

588


What is the use of htmlentities in php?

517