Jump to content

Redirection


adam84

Recommended Posts

I have a number of pages that a user (not logged in), can visit.

*each page have a form that allows a user to login

 

What I want to do is, say a user is on a page and they decide to log in. I want to reload that same page that user was on prior to them being logged in, but now with them being logged in.

* I hope that make sense, it is too early to think. Sorry

 

Would I store the current page url in a session variable, valid the username and password and I would do something like:

 

header("Location: " . $_SESSION['currentPage']);

 

Am I on the right track?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.