Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to maintained the session from one page to another page
based on the url and then entered into the first page is
logging into instead of secondpage it goes to the another
url.ie first login session togoes to the one url and next
login session it goes to another url
how is it possible in php
please give me answer in that question



how to maintained the session from one page to another page based on the url and then entered into ..

Answer / bharani

first we have to register the url using
session_reigister('user_id');
$_session['user_id']=row(0)

here row(0)hold s the user name=which value you want to
maintain in session...

then in we have the write this code
session_start();
in top of the all page
where u want the session value

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More PHP Interview Questions

What are the different components used in php for formatting?

0 Answers  


How to delete file in php?

0 Answers  


Why php is also called as scripting language?

0 Answers  


What is the importance of "action" attribute in a html form?

0 Answers  


what is magic code ?

4 Answers   eVenturers, iFlash, Zynga,


when ever the user logged in the database table the current registered date will be appeared

3 Answers  


What does a delimiter do in mysql?

0 Answers  


How many ways there are to fetch the data from the Database?

2 Answers   Tops Technologies,


What is a definer in mysql?

0 Answers  


In how many ways we can retrieve the date in the result set of mysql using PHP?

5 Answers   Yahoo,


What's the difference between __sleep and __wakeup?

0 Answers  


Why post method is used in php?

0 Answers  


Categories