Hi!

Thanx for replying to my mail.

Well See I have for example two pages.
login.php
inside.php

So when a person clicks on inside.php it checks for
the cookie meaning inside.php has a cookie checking
code  in it. If cookie uis not found it will take him
to the login.php page and on successful login he will
again be taken to the page he came from which in this
case is inside.php.


Can u guide me with some more details please.

Thank You!
Dhaval Desai


--- Bilal Abdul Kader <[EMAIL PROTECTED]> wrote:
> Hi
> Try to use the link to the actual page as a
> parameter to the Authentication script
> For example your authentication script is 
> login.php 
> and I click directly to page.php
> 
> Then in the page.php put 
> if (authenticad)
>   go on 
> else 
> header("Location:login.php?usr=$PHP_SELF");
> 
> in the login.php
> add
> if (authentication complete)
>   go to url
> 
> Good Luck
> ----- Original Message ----- 
> From: "Dhaval Desai" <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Wednesday, February 21, 2001 7:10 AM
> Subject: [PHP] Link back to where u came from..?
> 
> 
> | Hi!
> | 
> | See what I am trying to implement is:
> | 
> | 1.I have a website.
> | 2.When ppl come to the website..they see the
> homepage.
> | 3.When they click on any link, if they have logged
> in
> | earlier..and a cookie is stored.in their
> browser..they
> | will be allowed in.
> | 4. If not they will be told that click here to go
> the
> | login page.
> | 5. When they have logged in., I want the page to
> | automatically go to the link they came from.
> | 
> | 
> | Is it possible..Please give me some ideas..
> | 
> | 
> | Thank You
> | Dhaval Desai


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to