Skip to content

Fix: Django session handling#232

Open
Blue-B-code wants to merge 1 commit intoopenimis:developfrom
Y-Note-SAS:feature-36313
Open

Fix: Django session handling#232
Blue-B-code wants to merge 1 commit intoopenimis:developfrom
Y-Note-SAS:feature-36313

Conversation

@Blue-B-code
Copy link
Copy Markdown
Contributor

@Blue-B-code Blue-B-code commented Apr 16, 2026

Description

  • Django mobile-side handling of the openimis_session cookie ( local persistence, invalidation and cleansing ) and injection of the cookie accompanied by X-CSRFToken header into HTTP requests using a CookieJar to address the session instability or invalidity issue that causes the errors[0].message = "csrftoken" server response in mobile requests.

Type of Change

  • Feature
  • Bug fix
  • Chore (Refactor, Docs, CI/CD)
  • Other, please specify

Related Issue(s) / Task(s)

  • Requires [link to github PR], [link to github PR] needs to be merged first before this one
  • Relates to [link to github PR], this needs to be merged before [link to github PR]
  • External reference (e.g., Jira):

Demo

csrf_error_policies_phone csrftoken_error_policies fix_csfttoken_policies

Checklist

  • Unit tests added/modified
  • I18n / translation handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants