Re: Redirection Question
| From: | Ray Hunter | Date: | Tue, 22 Jul 2003 20:22:15 +0000 |
| Subject: | Re: Redirection Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156323@lists.php.net to get a copy of this message | ||
Use sessions or cookies to store the first page they are trying to
access. Then if not logged in redirect them to the login.php page. After
login is successful then they can be redirected to the values that was
specified in the cookie or seesion variable.
--
BigDog
On Wed, 2003-07-23 at 13:44, Beauford.2005 wrote:
> Hi,
>
> I am trying to figure out how to redirect a user back to a page but not
> having much luck.
>
> For example: I click on a menu item on my site which goes to a.php. This
> file includes another file that determines if they are logged in or not.
> If not, they are sent to login.php using header(:Location: .... ). How
> would I automatically redirect them back to a.php after they have logged
> in successfully. I have tried using HTTP_REFERRER, but it isn't
> redirecting.
>
> Any help is appreciated.
>