Skip to Content Skip to Menu

Denied because it had an invalid security token

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 200
  • Thanks: 25
  • Karma: 2
1 day 14 hours ago #340364 by kdave321
I use only CB Login module to log in.  Client is complaining she is seeing this error more often now (at Joomla! 4.4.10 now)

'UE_SESSION_EXPIRED'    =>    'The most recent request was denied because it had an invalid security token. Please go back or refresh the page and try again.',

I saw the recent post about this. I am already using session database handling and timeout of 240 minutes.

I suspect her Ipad/Iphone are using some aggressive caching to display old versions of a page when her login state hsa changed. No idea what to do about that.

Longstanding problem is those Apple products seem to log her out randomly after a few minutes -  far short of 4 hours!  She says she chooses "Remember Me" on login but the cookies just spontaneously disappear...  I have your behavior.keepalive running on every page but makes no difference for her.

One difference in my setup is I have made multiple "custom login pages" (all CB Login modules)  which log in in to separate CB GJ groups. I hacked JF Mobile Bar to give me a popup select list of these custom login pages, and she sees the above error randomly clicking on the list to go to those pages.

This message contains confidential information

 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48830
  • Thanks: 8344
  • Karma: 1449
18 hours 52 minutes ago #340370 by krileon
Our CSRF and form token are entirely handled by Joomla now. The error output does come from CB, but the token checks are all Joomla API. Often the culprit of this issue is caching. Specifically page caching. You can't use Joomla's page caching if you're going to have a dynamic frontend as it'll cache form tokens. Within System > Plugins unpublish the page caching plugin or configure it to exclude any pages with a form on it.


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.

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 200
  • Thanks: 25
  • Karma: 2
13 hours 53 minutes ago #340381 by kdave321
OK, I had already excluded the root URL and /cb-login - places I thought people would log in from. However she says she sees the error when clicking on the link to go to the custom login pages.  I am guessing the error happens as it renders that page. So I need to exclude all those too from plugin caching?

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

Moderators: beatnantkrileon
Powered by Kunena Forum