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 |
How can I embed a java programme in PHP file and what changes have to be done in PHP.ini file?
1 Answers Sify, Small Biz Express,
what is the difference between GET,POST and REQUEST in php
Why is php used?
To find out the current year is leap year or not which date() function we've to use.Give the syntax also
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
How do I run a php script?
Why we are using PHP than others for web developing?
What are the Merits and De-Merits of CURL library ?
How to download file in php?
What is the purpose of break and continue statement?
Tell me are parent constructors called implicitly inside a class constructor?
Is it worth learning php in 2019?