× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open page without login
#1
Hello,
I need to open product detail page of PROJECT A from PROJECT B.
I added link in PROJECT B product list page.
The issue is PROJECT A open login page when it redirects to detail page of PROJECT A.

Can anyone help me to open product detail page without login?
  Reply
#2
You have two options:
-Make the Product A product detail page public
-Syncronize your User Tables between the two projects and build system that will authenticate the user without them actually logging in. You could:
/ Duplicate your DB class and write to the other DB with a random hash
/ Include this hash in the URL with some form of encryption that you can decrypt on the other side-but only your server knows what level of encryption you used
/ If !$user->isLoggedIn() get the hash from the URL, decode & decrypt it, check the hash against the DB to see what user you need to login as, add their ID to the Sesssion, and refresh the page with just the ID.

Good luck,
Brandin.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)