Re: [PHP] Pasword Protecting several pages

2008-07-21 Thread tedd

At 7:44 PM -0700 7/20/08, R.C. wrote:

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.

Best
Ref


Ref:

It you will look, this is what I prepared for you:

http://webbytedd.com/b1/simple-session/

Everything you need is there.

Hope this helps,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread Micah Gersten
checkLogin.php



info.php



login.php



Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



R.C. wrote:
> Thank you Micah,
>
> Could you give me some code on that?
>
> Ref
>
> "Micah Gersten" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>   
>> 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.
>   
>> Thank you,
>> Micah Gersten
>> onShore Networks
>> Internal Developer
>> http://www.onshore.com
>>
>>
>>
>> R.C. wrote:
>> 
>>> 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
>   
>>> main page.
>>>
>>> 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.
>   
>>> Best
>>> Ref
>>>
>>>
>>>
>>>
>>>
>>>
>>>   
>
>
>
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread R.C.
Thank you Micah,

Could you give me some code on that?

Ref

"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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.
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> R.C. wrote:
> > 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
> > main page.
> >
> > 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.
> >
> > Best
> > Ref
> >
> >
> >
> >
> >
> >



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread Micah Gersten
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.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



R.C. wrote:
> 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
> main page.
>
> 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.
>
> Best
> Ref
>
>
>
>
>
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Pasword Protecting several pages

2008-07-20 Thread R.C.
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
main page.

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.

Best
Ref





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php