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

How do I stop php artisan serve in windows?

0 Answers  


How to check your php installation?

0 Answers  


when will be syndicate bank written exam ? i need the date of exam

0 Answers  


Write down the code for saving an uploaded file in PHP.

0 Answers  


Is php strongly typed?

0 Answers  






Write a regular expression to get the value xxx from the string 'xxx@yyy.com'

9 Answers  


What is a controller in programming?

0 Answers  


Can I learn laravel without php?

0 Answers  


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

0 Answers  


what are the differences between php and perl

0 Answers   TCS,


Do you know what does $globals means?

0 Answers  


What does type casting mean in php? Explain with an example?

0 Answers  


Categories