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 / 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 |
Describe session in php.
What does odbc do in context with php?
Tell me how can I display text with a php script?
What is the use of header() function in PHP? What the Limitation of HEADER()?
What is the difference between php and cakephp?
Write a statement to show the joining of multiple comparisons in php?
Single choice objective PHP question...
How many different types of messages available in php?
What is the difference between unset and unlink?
Difference between mysql_connect and mysql_pconnect?
Tell me what is the difference between ereg_replace() and eregi_replace()?
How to remove white spaces from the beginning and/or the end of a string in php?