How to use session in php

hi i want to use session in my project, i know session but not complete
can u assist me from login page to how to use and every page pass session and give me some info about session and also cookies ,

and one another question is that, can i use both session and cookies in project is it possible for me ,

please assist me as possible as
You can use both session and cookies in your project. But it is not advisable to use cookies to store login information after the user singed-in. As cookies reside in user computer so it can be hacked unless all precautions are taken. So you can use session to maintain state across pages. However cookies can be used to remember userid or even password of the user when he visits next time to the site, so user need not enter userid and password always. Read more on

Cookies in PHP
Please Login to post your reply or start a new topic