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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How is it possible to propagate a session id?

1002


What are the uses of php language?

975


Why php is better?

977


What is a query in a database?

1016


Is php pass by reference or value?

1109


Which is the latest version of php?

1111


What are the differences between mysqli_connect and mysqli_pconnect?

1004


What is session_start () in php?

990


What is the most common http method?

1094


What is php and its features?

1059


What does the php error 'parse error in php - unexpected t_variable at line x' means?

1102


Why php 7 is faster?

969


What are the data types in php?

1036


Why ide is recommended for use while programming with php?

927


How can you increase the maximum execution time of a script in php?

953