Php Session ideas...?

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!

Moderator: General Moderators

Post Reply
User avatar
thx1138
Forum Newbie
Posts: 8
Joined: Thu Jan 19, 2006 1:56 pm

Php Session ideas...?

Post by thx1138 »

Hello all..

Looking for a way to have a session actually check the path or way a person has entered a particular webpage. I am not a coder, but someone told me I could use php "Session" to check to make sure a person was at page "A" before they entered Page "B"....

For example if they are reading an online story they would have to go through it in order...and could not just type in the url of page 7 and start there.

Any samples or examples would be greatly appreciated


THX1138
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yep, sessions are a way to do what you want. Each page should store data into the same variable and check that variable to see if the previous page was the last page.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

You are an HTML person, no? And you've got one HTML page for each page of the story? Making it so that you don't end up with the same code on each page might require a little more heavy lifting. I understand you're not a coder, but learning PHP is a worthwhile skill and would probably be necessary to do something like this.
User avatar
thx1138
Forum Newbie
Posts: 8
Joined: Thu Jan 19, 2006 1:56 pm

Thanks....

Post by thx1138 »

Yes! I would love to take the time to learn PHP,
it just is not an option currently in my work schedule.

Thanks for the input though...
I will keep asking around.


THX1138
Post Reply