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 does session start do in php?
Tell us how can we display the output directly to the browser?
What are the different types of statements that are present in php?
How many records can be stored in mysql table?
Explain me what is the importance of "method" attribute in a html form?
What is the role of php.ini file?
What is lamp in php?
What is csrf token and how it works?
What is difference between rest and http?
1. Create student database. 2. First page should display the students available in the database. There should be add, edit and delete buttons. 3. There should be option to search students by name, code, date of joining, department or combination of these. 4. Should have an add/edit screen. Add and Edit should be handled in the same page. 5. Delete should ask for confirmation before deleting the actual record. 6. Validation should be done in JavaScript as well as php.
What are the differences between php constants and variables?
How do I run a php script in windows?