Save a $session variable from ARI Table Value 9 Years, 6 Months ago
|
Karma: 0
|
Hi,
I am using $REQUEST variables passed through the link URL quite successfully, similar to this,
<a href="index.php?option=com_content&view=article&id=112&ID={$value}">{$value}</a>
In most cases this technique works fine. However, there are some situations where I do not want variables visible in the URL because it opens a security hole.
In these cases I am hoping to instead save a $session variable based on the selection of the link. So, on clicking the link in the table column I want to trigger the saving of the $session variable = {$value}. Is there a way to do this from ARI Data Tables?
Thank you.
Ken
|
|
|
|
|
Re:Save a $session variable from ARI Table Value 9 Years, 6 Months ago
|
Karma: 760
|
Hello,
The extension doesn't support this ability.
Regards,
ARI Soft
|
|
|
|
|
Re:Save a $session variable from ARI Table Value 9 Years, 5 Months ago
|
Karma: 0
|
Ok, that is fine.
What if I just want to encrypt or encode the value passed inside the URL to at least conceal critical values?
Hence, I would need to change from {$value} to some processing of that value like, for example,
base64_encode({$value})
Is this possible? If so, how can base64_encode({$value}) be implemented instead of just {$value} in the URL?
I understand fully that on the receiving end the value will need to be decoded before using, and I have that already done. I am having trouble with the "encoding" part from inside ARI DataTables.
Thanks.
Ken
|
|
|
|
|
Re:Save a $session variable from ARI Table Value 9 Years, 5 Months ago
|
Karma: 760
|
You can create a new filter for base64_encode function. See files in <joomla_directory>/modules/mod_aridatatables/includes/kernel/SimpleTemplate/Filters/ folder.
Regards,
ARI Soft
|
|
|
|
|
Re:Save a $session variable from ARI Table Value 9 Years, 5 Months ago
|
Karma: 0
|
Thanks, but I have never created a filter before now. Is there any documentation on this? I browsed inside the folder and see that there is already a "class.Base64Encode.php" which looks like it should just call the PHP base64_encode function. How do I call that? I do not want everything encoded, only the specific critical items.
|
|
|
|
|
Re:Save a $session variable from ARI Table Value 9 Years, 5 Months ago
|
Karma: 760
|
Use {$value|base64_encode} code in "Columns settings -> Format" parameter.
Regards,
ARI Soft
|
|
|
|
|
|