is it possible logout when user close the browser?

1 month 13 hours 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?
4 weeks 2 days 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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
4 weeks 2 days 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.
4 weeks 2 days ago - 4 weeks 2 days ago #313898 by saman2
i can't find onAfterRender in autoaction. are you mean onAfterRenderModule?
is this mean render the page?
4 weeks 2 days 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 - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
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 EST to 4:00 PM EST. 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.
4 weeks 2 days ago - 4 weeks 2 days ago #313900 by saman2
is it work in autoaction if i type that manually?
or need to create my own plugin to do this?
Moderators: beatnantkrileon
Time to create page: 0.388 seconds
Facebook Twitter Google LinkedIn