Jump to content

Redirect to previous page


shadowayex
 Share

Recommended Posts

Is there a way to redirect a user to the previous page? I have a code on each page that checks if the user is logged in and I want to make it so if they aren't logged in, they are directed to log in. Then the log in page can direct them to the page they came from.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...