Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

is it possible logout when user close the browser?

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago #313888 by saman2
hi
1-i want when user close the browser , then logout automatically.is it possible?
2-is there any auto action in cb for onload trigger? i want if user login from before and have other condition and then load the site,then he redirect to some custom url. is it possible?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 3 months ago #313894 by krileon

1-i want when user close the browser , then logout automatically.is it possible?

No, best I can suggest is set the session time to a shorter time so it expires their session quicker.

2-is there any auto action in cb for onload trigger? i want if user login from before and have other condition and then load the site,then he redirect to some custom url. is it possible?

Sorry, don't understand what you're asking. You want to redirect after they login? or you want to redirect when they immediately visit your site? That's doable with the onAfterRender Joomla event, but I don't recommend doing this as there's little information to condition against.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago #313897 by saman2

krileon wrote: or you want to redirect when they immediately visit your site? That's doable with the onAfterRender Joomla event, but I don't recommend doing this as there's little information to condition against.

i want redirect immediately visit my site.
i want if my user logged in from last page closing and session is not expire yet, then redirect to some menu that i want.and occur for each user 2 time.

Please Log in or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago - 5 years 3 months ago #313898 by saman2
i can't find onAfterRender in autoaction. are you mean onAfterRenderModule?
is this mean render the page?
Last edit: 5 years 3 months ago by saman2.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 3 months ago #313899 by krileon
It doesn't have to be listed to be used. Prefix all Joomla events with joomla_ (e.g. joomla_onAfterRender). onAfterRender is not listed because it's easy to cripple your site if used incorrectly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
5 years 3 months ago - 5 years 3 months ago #313900 by saman2
is it work in autoaction if i type that manually?
or need to create my own plugin to do this?
Last edit: 5 years 3 months ago by saman2.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum