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
What are the main error types in php?
What is stdclass in php?
What is the value for this auto incremented field user_pri_id?
Explain me what is the importance of "method" attribute in a html form?
Can we override magic methods in php?
> symbol is used to redirect the output of a command. State Whether True or False?
How do I find out the number of parameters passed into function9?
What is foreach loop in php?
Why sessions are used in php?
Where is session value stored?
What is framework? How it works? What is advantage?
Which programming language does php resemble to?
What are the characteristics of php variables?
How can I learn php fast?
What are the benefits of composer?