So I have finally figured out how to Register and Log-In users!
One mini-victory!
Now a user reading "Postage Meters can save you money" can either Log-In or Register and then land back where they were at and add a comment to the article page.
All fine and dandy, however, now I want to expand where people can Log-In and Register, and more importantly I need a strategy to handle routing people after they Register/Log-in?!
Currently, I capture which Article a user is reading and stored "ReturnToPath" in the SESSION from the "article.php" page which is a dynamic page that serves up different articles.
That works fine, but not for other situations.
I have since added Log-In and Register links to my Page Header.
If a user is on "index.php" and Logs-In, I suppose they should be brought back to "index.php"?!
In most cases I would assume this is the behavior you'd want, right?)
But if a user were Checking Out and on Step #1, after they log in, they would probably want to proceed to Step #2.
For now, I guess I need a way to keep what I have (i.e. When a user is on some article, wants to Log-In to comment, then take them back to that Article) but for any other pages, if a user is on Page-A and wants to Log-In, then take them back to Page-A.
Not sure if this is making any sense?!
(*Hint: Right now, I only capture "ReturnToPath" in "article.php" so that is a problem...)
Thanks,
Debbie
One mini-victory!
Now a user reading "Postage Meters can save you money" can either Log-In or Register and then land back where they were at and add a comment to the article page.
All fine and dandy, however, now I want to expand where people can Log-In and Register, and more importantly I need a strategy to handle routing people after they Register/Log-in?!
Currently, I capture which Article a user is reading and stored "ReturnToPath" in the SESSION from the "article.php" page which is a dynamic page that serves up different articles.
That works fine, but not for other situations.
I have since added Log-In and Register links to my Page Header.
If a user is on "index.php" and Logs-In, I suppose they should be brought back to "index.php"?!
In most cases I would assume this is the behavior you'd want, right?)
But if a user were Checking Out and on Step #1, after they log in, they would probably want to proceed to Step #2.
For now, I guess I need a way to keep what I have (i.e. When a user is on some article, wants to Log-In to comment, then take them back to that Article) but for any other pages, if a user is on Page-A and wants to Log-In, then take them back to Page-A.
Not sure if this is making any sense?!
(*Hint: Right now, I only capture "ReturnToPath" in "article.php" so that is a problem...)
Thanks,
Debbie
Comment