Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Save a $session variable from ARI Table Value
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Save a $session variable from ARI Table Value
#54683
Save a $session variable from ARI Table Value 8 Years, 10 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
The administrator has disabled public write access.
 
#54685
Re:Save a $session variable from ARI Table Value 8 Years, 10 Months ago Karma: 747
Hello,

The extension doesn't support this ability.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54811
Re:Save a $session variable from ARI Table Value 8 Years, 10 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
The administrator has disabled public write access.
 
#54812
Re:Save a $session variable from ARI Table Value 8 Years, 10 Months ago Karma: 747
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
The administrator has disabled public write access.
 
#54813
Re:Save a $session variable from ARI Table Value 8 Years, 10 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.
The administrator has disabled public write access.
 
#54814
Re:Save a $session variable from ARI Table Value 8 Years, 10 Months ago Karma: 747
Use {$value|base64_encode} code in "Columns settings -> Format" parameter.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12