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 |
What are the features and advantages of object-oriented programming?
How to generate a form?
Explain scalar type declarations in php7?
What is Apache's configuration file typically called?
What does the arrow mean in php?
What is scope of variable in php?
Can you use php and javascript together?
What is difference between Method overriding and overloading in PHP?
What is difference between strstr() and stristr() in PHP?
Is php better than python?
What are the benefits of using php?
sort term descripttion form, report and uery