Page 1 of 1

Php Session ideas...?

Posted: Thu Apr 13, 2006 10:48 am
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

Posted: Thu Apr 13, 2006 11:08 am
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.

Posted: Thu Apr 13, 2006 4:52 pm
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.

Thanks....

Posted: Thu Apr 13, 2006 6:46 pm
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