is it possible logout when user close the browser?

4 years 7 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 to join the conversation.

4 years 7 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 to join the conversation.

4 years 7 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 to join the conversation.

4 years 7 months ago - 4 years 7 months ago #313898 by saman2
i can't find onAfterRender in autoaction. are you mean onAfterRenderModule?
is this mean render the page?

Please Log in to join the conversation.

4 years 7 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 to join the conversation.

4 years 7 months ago - 4 years 7 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?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.245 seconds

Facebook Twitter LinkedIn