简体   繁体   English

Joomla会话超时不适用于Joomla3中的个人资料页面

[英]Joomla session timeout not working for my profile page in Joomla3

I am facing the strange behavior of Joomla session timeout. 我正面临着Joomla会话超时的奇怪行为。 I have set the session timeout limit to 5 min from the back-end global configuration. 我已将会话超时限制设置为后端全局配置的5分钟。 As far as I know Joomla session setting will work for both the front-end and back-end , but I read about the same in some forum they said it only worked for back-end. 据我所知,Joomla会话设置将适用于前端和后端,但我在一些论坛中读到了相同的内容,他们说它只适用于后端。 Which from my point of view is wrong because as I said I have set the session time out for 5 min and logged in to both front end (Home page) and back-end(control panel) and do nothing for at least for 5-6 min. 从我的观点来看这是错误的,因为正如我所说,我已经将会话时间设置为5分钟并登录到前端(主页)和后端(控制面板)并且至少对于5没有任何作用6分钟 After that time I am logged out from both the end. 在那之后我从两端登出。 But if I repeat the same process and redirect to my profile page from front-end and back-end (control panel). 但是,如果我重复相同的过程并从前端和后端(控制面板)重定向到我的个人资料页面。 So after the 5-6 min I logged out from back-end but not in front-end. 所以在5-6分钟之后我从后端退出但不是在前端。 I don't get this what is happening. 我不知道发生了什么。 If some has any suggestion about or having the same problem before please help me to figure out. 如果有人有任何关于或有相同问题的建议,请帮我弄明白。

Thanks 谢谢

Many Joomla pages (especially those with a form) will run a 'keepalive' javascript that periodically hits the server, keeping your session alive. 许多Joomla页面(特别是那些带有表单的页面)将运行一个“keepalive”javascript,定期点击服务器,让你的会话保持活跃状态​​。 This is because you wouldn't want your session to timeout while you were in the middle of filling out a form. 这是因为当您填写表单时,您不希望会话超时。

If you really want to disable this feature, there's a line in components/com_users/views/profile/tmpl/edit.php like: JHtml::_('behavior.keepalive'); 如果你真的想要禁用这个功能,那么在components/com_users/views/profile/tmpl/edit.phpJHtml::_('behavior.keepalive'); . You can remove that (or better, override the template file and remove it there) and your users will inconveniently time out even if they are trying to fill out a form. 您可以删除(或更好地覆盖模板文件并将其删除),即使用户试图填写表单,您的用户也会不方便地超时。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM