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 |
Tell me what is the definition of a session?
Maine 12th ke bad 2 years ka web designing ka course kiya hai. Php me achcha hu. Ek fresher ko is field me kitna mil sakta hai ?
What is user defined function in php?
What is the delimiter syntax is PHP's default delimiter syntax
What is MVC structure in Magento?
How does php work with apache?
Which is the best institute in Chennai to learn PHP? Please help.
Explain about Type Juggling in PHP?
i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..
Which Scripting Engine PHP uses?
How can I get the only name of the current executing file?
!== represents what?