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


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 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.


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 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
The administrator has disabled public write access.
 
#54685
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
The administrator has disabled public write access.
 
#54811
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
The administrator has disabled public write access.
 
#54812
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
The administrator has disabled public write access.
 
#54813
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.
The administrator has disabled public write access.
 
#54814
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
The administrator has disabled public write access.
 
Go to topPage: 12