if your do_login script doesn't require any cookies or session information
you can just redirect right after auth:

<?php //do_login.php
$url = "http://www.somewebsite.com";;
//do stuff
if($loggedin == true){
    header("Location: " . $url);
}
else{
    //possible postback with get var error i.e:   header("Location:
do_login.php?error=failedLogin")
}
?>

"Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have written a very straightforward user login script.  Once the user
> successfully logs in, I would like my PHP script to take him directly to
the
> home page.  I know this sounds simple, but the only solution I've found is
a
> function called do_html_url() from Welling and Thompson's book (see
>
http://www.cs.indiana.edu/classes/a348/fall2001/labs/php9/do_html_url.html).
> When this function is invoked the user is dispatched to an intermediate
web
> page on which is presented a link that, when clicked, will take the user
to
> the intended page.
>
> Can I avoid that intermediate step, somehow?  When my script logs in the
> user, how to I write the code that dispatches directly to the home page?
>
> Thanks,
>
> Cheers,
>
> Michael

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

Reply via email to