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
How many types of array are there in php?
How can i execute PHP File using Command Line?
What is Different between Joomla And Magento?
Explain what are the different errors in php?
Write a program to swap two numbers using php.
What is symfony php?
What are the differences between php constants and variables?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
Which functions are used to remove whitespaces from the string?
Difference between get and post method.
What does namespace mean in php?
How many types of inheritances used in php and how we achieve it.
Tell me what is the difference between ereg_replace() and eregi_replace()?
How are cookies created?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.