Feature Requests
Share ideas, discuss and vote on requests from other users in community
This object is in archive! 

Custom Parameters Passed-Retrieve after dologin.php

Loubrando Dejito shared this idea 2 years ago
Under Consideration


$whmcsurl = "https://wwwdev.domain.net/dologin.php"; # URL to WHMCS API file

$autoauthkey = "SampleautoauthKey";

$timestamp = time();

$customparam= 'customavalue';

$email = $_GET['email']; # Clients Email Address to Login

$goto = "cart.php?a=add&pid=123&customparam=".$customparam;

$hash = sha1($email.$timestamp.$autoauthkey); # Generate Hash

Generate AutoAuth URL & Redirect$url = $whmcsurl."?email=$email&timestamp=$timestamp&hash=$hash&goto=".urlencode($goto);

After that, data are sent to dologin.php to auto authenticate, now I'm retrieving the customparam value using $_GET[customparam]. but when I do, it's blank. So I assume that after the auto authentication parameters were removed? I also tried creating hooks and setting sessions, but after dologin.php, all data disappears.

What I'm trying to do is to be able to retrieve the parameter I add in the URL after dologin.php.