Advertisement:

Author Topic: How disable csrf token of osclass system?  (Read 827 times)

AdrianOlmedo

  • Newbie
  • *
  • Posts: 46
  • Working with Osclass 3.7.5
How disable csrf token of osclass system?
« on: July 20, 2016, 07:18:31 am »
Each time the token period expires and the form is sent, show "CSRF Token invalid".
Why not automatically generates a new one?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: How disable csrf token of osclass system?
« Reply #1 on: July 20, 2016, 09:43:41 am »
Because the token protects you against CSRF attacks. It's based on the session time, so if the token is expired, your session should be too.
You could try putting a higher value for your session lifetime ( http://php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime ) this is on your php.ini configuration