Hi,
As per our discussion via support ticket this is what you needed :
Create session.php and upload it to the Softaculous Remote server at :
Code /usr/local/softaculous/enduser/session.php
The session.php is loaded every time the session is created.
The session.php will get the product id (or any other custom variable) in $myexit using the parameter you passed via GET to Softaculous when you are redirecting the user to Softaculous from your control panel :
Code http://autoinstaller.example.com/index.php?rsid='.$res['rsid'].'&exit='.$myuser1
So you will redirect the user to Softaculous using this :
PHP Code header('Location: http://autoinstaller.example.com/index.php?rsid='.$res['rsid'].'&exit='.$myuser1);
Write the following code in session.php (create a new file if it does not exist)
PHP Code $myexit = (int) $_GET['exit'];
$mylogout = 'https://cp.example.com/clientarea.php?action=productdetails&id='.$myexit.'&view=overview';
define('SOFT_LOGOUT_REDIRECT', $mylogout);
Edited by Brijesh : September 22, 2016, 8:08 am
----------------------- Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool |