Rme 2012-04-26 05:02:27
I’m still trying to get this scenario worked out and don’t seem to be able
to get it done.
Here’s what I’m trying to do:
User logs into a login page and inputs email address and password. User
accessess password protected page, which contains a few links. User clicks
on one of the links, opens page, looks at content and then clicks back to
User is now asked to input password again…. what do I have to do to make
sure all related links/pages on the main.php page are accessible with that
same password the user input the first time? Also.. how can I password
protect ALL the linked pages on the main.php site with the same password but
user only has to log in once!!
No database, but just sessions? I looked at those and also Tedd was kind
enough to send something but for some reason I can’t get it to go.
Can someone forward some good instructions on how to accomplish this task?
I would greatly appreciate it. Still learning this program as you can tell.
Micah 2012-04-26 05:02:30
Set a session variable after the login has been confirmed and check for
it at the beginning of every page. If it’s not set, then redirect to login.
Rme 2012-04-26 05:02:34
Thank you Micah,
Could you give me some code on that?
Micah 2012-04-26 08:48:22
Tedd.sperling 2012-04-26 08:49:03
It you will look, this is what I prepared for you:
Everything you need is there.
Hope this helps,