【问题标题】:executing a code when a user exits website in Joomla 2.5当用户在 Joomla 2.5 中退出网站时执行代码
【发布时间】:2013-01-18 18:32:58
【问题描述】:

我是 Joomla 2.5 的新手。

当用户关闭网站时,我想从用户定义的表中删除一行。我不知道在哪里可以找到当一个人退出 Joomla Web 应用程序时执行的代码。

在 asp.net 中,这很容易,因为您需要扩展 OnApplicationExit() 事件处理程序。我在 Joomla 2.5 中找不到类似的事件。甚至可以在 joomla 2.5 中做到这一点吗?

另外,当用户会话超时时,我也可以从表中删除一行,但我不知道该怎么做。请提供建议。

【问题讨论】:

    标签: events joomla web joomla2.5


    【解决方案1】:

    你需要写一个系统或用户插件,你要找的事件是onUserLogout

    http://docs.joomla.org/Plugin/Events/User

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-28
      • 1970-01-01
      • 2019-05-27
      • 1970-01-01
      • 2012-07-14
      • 2021-12-04
      • 2012-05-09
      • 2014-07-10
      相关资源
      最近更新 更多