Redirecting users

G

Guest

I am a novice programmer. I want to give my site the ability to remember
users. I want to do this the easiest possible way--using cookies to store
username and password--since I am not concerned with security at this point.
In the sign on page, I first check for the value of the cookie. If invalid
or null, users are requested to log in. I only want to check the value of the
cookie in one page.
My problem is that if users enter my site via a page other than the default
(login) page, the site checks the status (logged in/not logged in) and
performs accordingly. If users arer not logged in, they will be redirected to
the login page where the cookie is going to be rerquested. How do I redirect
users back to the pae they originally requested?

Hector
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top