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
When is a conditional statement ended with endif?
How do I run a php program in dreamweaver?
What is the difference between characters and #?
Is runtime polymorphism overriding?
How to enable error reporting in php?
How to create connection in php?
What is the use of $_request variable?
How to join multiple strings into a single string?
What is the difference between php and java?
What is mvc php?
What are the uses of explode() and implode() functions?
Do you know what is the use of the function 'imagetypes()'?
Why do you need to filter out empty files?
How many types of session are there?
What is encapsulation in php with example?