Skip to Content Skip to Menu

Redirection on error already logged in

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
7 years 2 weeks ago #298039 by chanteur94
Redirection on error already logged in was created by chanteur94
Hi

In some case, user can open 2 sessions of the website.. One where the user is already logged and one where the user is not connected.
In the second case a error message appear ; 'Error - you are already logged in'

I try many triggers in autoactions to make redirection to the good page but it doesn't work.

Any help ?

Thank you.

PS : the trigger onloginfail just works for wrong login/password / onafteruserloginfailed doesn't work in my case

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 2 weeks ago #298049 by krileon
Replied by krileon on topic Redirection on error already logged in
Only way for that to happen is they opened 2 different versions of your domain. Likely 1 with www and 1 without. The best fix for that is to fix it in htaccess so they can't access the wrong domain at all.


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.

  • chanteur94
  • chanteur94
  • OFFLINE
  • Posts: 302
  • Thanks: 13
  • Karma: 1
7 years 2 weeks ago #298077 by chanteur94
Replied by chanteur94 on topic Redirection on error already logged in
It happens with 2 same version of my domain ( www.xxxxx.com in the 2 cases)

It happens also the same problem when you are logged in and you clear cache and cookies during the session.

Best regards.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 2 weeks ago - 7 years 2 weeks ago #298085 by krileon
Replied by krileon on topic Redirection on error already logged in
Add an htacces rewrite or redirect rule to prevent them from going to the wrong domain. Can't help you regarding users manually purging their cookies as they're breaking their link to their Joomla session doing so.

As for the error if you're using CB AntiSpam you may have enabled duplicate login protection and it sees there is already a session in Joomla for that account, which instead of blocking subsequent logins you can configure it to just log the other session out.


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.
Last edit: 7 years 2 weeks ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum