Jump to content

Redirect after login


Fabietto

Recommended Posts

I'm a newbie and I hope someone could help me!

I'm looking for a solution for this problem: in the product page, I want a download button for the product specification that is available only if I am logged in; so, if I'm not, I click on the button, log in or create new account, than I want to go back to the product page and download the product specification.
It seems not so complicated but I'm not able to find a solution! I'll try to set a variable to store the product url to use for redirect after login...no way! How can I do?
Sorry for my english, hope you understand my issue.

Thanks a lot!

 

Fabietto

Link to comment
Share on other sites

I think you should set a variable (or cookie) just before redirection.

 

And edit the login page to check if your cookie/variable is set. If so, make redirection to the product page. If it is not set, keep the default behavior.

 

Not as easy as it seems ;)

Edited by electriz (see edit history)
Link to comment
Share on other sites

Thank you electriz!

 

Yes, you say right! But my problem is that I'm already try to set a variable (I'm trying with Smarty variable, set as global or root ecc...) but with no success. I think there must be a simple way to set a variable and share it in this enviroment, or not?? Tnx a lot for your help!

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
×
×
  • Create New...