The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Open page without login - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Open page without login (/showthread.php?tid=1047)



Open page without login - brahm.pragya - 04-23-2018

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?


Open page without login - Brandin - 04-23-2018

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.