Session Management Techniques and Options for Micro-frontend Web Development

International Journal of Computer Science and Engineering
© 2024 by SSRG - IJCSE Journal
Volume 11 Issue 8
Year of Publication : 2024
Authors : Tanmaya Gaur

pdf
How to Cite?

Tanmaya Gaur, "Session Management Techniques and Options for Micro-frontend Web Development," SSRG International Journal of Computer Science and Engineering , vol. 11,  no. 8, pp. 17-25, 2024. Crossref, https://doi.org/10.14445/23488387/IJCSE-V11I8P103

Abstract:

Micro-frontends extend the concept of micro-services to the world of UI. The idea behind Micro Frontends is to develop applications as a composition of features which are owned and developed completely isolated and by independent teams. These experiences are strung together either at run-time or build-time to deliver a single cohesive application experience to the end user. Session management, which is a crucial aspect of traditional web development, is also a requisite for micro-frontend applications as it enables the application to maintain the state of a user’s session. This could mean things like preferences, actions, and authentication status across different types of applications and user types. Without session management, the backends would treat each request as a new one, and the user would have to re-enter their credentials, preferences, and data every time they interact with the web application. Traditional application development has some well-defined options to enable session management. For applications implemented as micro-frontends, there are implications specific to that architecture which need to be accounted for. This paper will attempt to review traditional session management methodologies and provide an overview of considerations when using them in micro-frontend style applications.

Keywords:

Session management, CRM, Web development, Micro-frontend.

References:

[1] The Session Management Cheat Sheet, OWASP Cheat Sheet Series. [Online]. Available: https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html
[2] The Web Storge API, Mozilla. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API
[3] The Indexed DB API, Mozilla. [Online]. Available: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
[4] The Session Token Blog, Ropnop. [Online]. Available: https://blog.ropnop.com/storing-tokens-in-browser/#global-variable
[5] Browser Storage: A Comparative Analysis of IndexDB, Local Storage, and Session Storage, Browsee. [Online]. Available: https://browsee.io/blog/unleashing-the-power-a-comparative-analysis-of-indexdb-local-storage-and-session-storage/
[6] State Management in Micro-frontends, Medium. [Online]. Available: https://medium.com/sysco-labs/state-management-in-micro-frontends-ee273830f95f
[7] Navdeep Singh Gill, Micro-frontend Architecture and best Practices, Xenonstack, 2023. [Online]. Available: https://www.xenonstack.com/insights/micro-frontend-architecture
[8] Nathan Sharma, Session Management 101: A Beginner’s Guide for Web Developers, MojoAuth, 2024. [Online]. Available: https://mojoauth.com/blog/session-management-a-beginners-guide-for-web-developers/
[9] Ashan Fernando, React MicroFrontend Authentication: Step by Step Guide, Medium, 2024. [Online]. Available: https://blog.bitsrc.io/react-microfrontend-authentication-step-by-step-guide-ca4f3947996f