PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have written four php files and linked them. I want a session which stores the path from where i come to that page(all the pages i viewed). how should i write and include a session in the files so that it stores the path. The session should capture all the pages i viewed. Please help i am not good with sessions.
Last edited by Benjamin on Mon Nov 14, 2011 10:31 am, edited 1 time in total.
Reason:Added [syntax=php||htm||css||javascript||sql||etc] - Please use [syntax] tags when posting code in the forums! Thanks.
You'll need session_start() on all the pages, before anything else is echoed to the browers if you want to use sessions. To capture all the pages you visit you can use an array and add each page to the array as a new page is accessed.