- Posts: 48
- Thank you received: 5
Enable Session Keepalive Cookie when editing products in Hikashop
1 year 1 month ago #368208
by brettv
-- HikaShop version -- : 6.0.0
-- Joomla version -- : 4.4.13
-- PHP version -- : 8.1.32
Hello,
A couple of times now I have found myself logged in, working on a hikashop product, only to learn that my session expired while I was working and all of my changes were lost.
More precisely, I'll be editing the product description at /index.php?option=com_hikashop&ctrl=product&task=edit&cid[]=2 only to click on the save button and be presented with the login screen, therefore losing all my changes.
I'd like to suggest that Hikashop implement some kind of keepalive method, so that the session be kept alive automatically when working in the backend, so this doesn't happen in future versions.
Thanks in advance,
-- Joomla version -- : 4.4.13
-- PHP version -- : 8.1.32
Hello,
A couple of times now I have found myself logged in, working on a hikashop product, only to learn that my session expired while I was working and all of my changes were lost.
More precisely, I'll be editing the product description at /index.php?option=com_hikashop&ctrl=product&task=edit&cid[]=2 only to click on the save button and be presented with the login screen, therefore losing all my changes.
I'd like to suggest that Hikashop implement some kind of keepalive method, so that the session be kept alive automatically when working in the backend, so this doesn't happen in future versions.
Thanks in advance,
Please Log in or Create an account to join the conversation.
1 year 1 month ago #368210
by nicolas
Replied by nicolas on topic Enable Session Keepalive Cookie when editing products in Hikashop
Hi,
Thanks for your feedback.
I understand your frustration but I don't think it should be the role of HikaShop to automatically override the Joomla user session lifetime for everyone in the backend.
If that's something you need, I would recommend you to use a plugin made for that:
extensions.joomla.org/extension/session-keeper/
It will keep alive the session in the backend not only for HikaShop products but also for view overrides, Joomla articles, and other extensions where you might be spending a long time at once on a task.
Thanks for your feedback.
I understand your frustration but I don't think it should be the role of HikaShop to automatically override the Joomla user session lifetime for everyone in the backend.
If that's something you need, I would recommend you to use a plugin made for that:
extensions.joomla.org/extension/session-keeper/
It will keep alive the session in the backend not only for HikaShop products but also for view overrides, Joomla articles, and other extensions where you might be spending a long time at once on a task.
Please Log in or Create an account to join the conversation.
1 year 1 month ago #368215
by brettv
Replied by brettv on topic Enable Session Keepalive Cookie when editing products in Hikashop
Hi,
I'm sorry but I don't understand your point of view. Shouldn't it involve calling the Web Asset Manager and using behavior.keepalive?
For instance, Joomla core uses this code (in com_content/tmpl/article/edit.php) to keep the session alive when editing articles:
So, as far as I can tell, the user's session is kept alive when she is editing an article, so she doesn't get logged out before her changes are saved.
I hope you will consider adding something like this to future versions of Hikashop.
And please forgive me if I've completely missed your point.
In the meantime, I've upped the Session Lifetime in my Global Configuration from 15 to 60 minutes, so hopefully that will be long enough for my applications
I'm sorry but I don't understand your point of view. Shouldn't it involve calling the Web Asset Manager and using behavior.keepalive?
For instance, Joomla core uses this code (in com_content/tmpl/article/edit.php) to keep the session alive when editing articles:
Code:
$wa->useScript('keepalive')
->useScript('form.validate')
->useScript('com_contenthistory.admin-history-versions');
So, as far as I can tell, the user's session is kept alive when she is editing an article, so she doesn't get logged out before her changes are saved.
I hope you will consider adding something like this to future versions of Hikashop.
And please forgive me if I've completely missed your point.
In the meantime, I've upped the Session Lifetime in my Global Configuration from 15 to 60 minutes, so hopefully that will be long enough for my applications
Please Log in or Create an account to join the conversation.
1 year 1 month ago #368220
by nicolas
Replied by nicolas on topic Enable Session Keepalive Cookie when editing products in Hikashop
Hi,
Oh, I didn't know about that. When I checked (15 years ago), that wasn't the case and thus I made HikaShop work the same way as Joomla.
But yes, now that Joomla does it when editing articles, it makes sense to also do it when editing products / views / categories / emails in HikaShop.
I'll be adding that for the next version.
Thanks again for your feedback !
Oh, I didn't know about that. When I checked (15 years ago), that wasn't the case and thus I made HikaShop work the same way as Joomla.
But yes, now that Joomla does it when editing articles, it makes sense to also do it when editing products / views / categories / emails in HikaShop.
I'll be adding that for the next version.
Thanks again for your feedback !
The following user(s) said Thank You: brettv
Please Log in or Create an account to join the conversation.
1 year 1 month ago #368221
by brettv
Replied by brettv on topic Enable Session Keepalive Cookie when editing products in Hikashop
My pleasure. Looking forward to future updates
Please Log in or Create an account to join the conversation.
Time to create page: 0.225 seconds