You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently developing a SaaS application using Go and the SCS package for session management, with PostgreSQL as the session store. I developped multi-step forms in the app and in one of them, users can upload images in an intermediary step. Between each step a post is made with the server to store data related to the current step in the session.
I'm considering storing these images directly in the session data managed by SCS (as byte arrays). Given that SCS stores session data in PostgreSQL, I'm wondering:
Is it a good idea to store images in SCS sessions when using a database-backed session store?
Are there any performance implications or potential pitfalls I should be aware of?
Would you recommend this approach, or is it generally discouraged to store large data like images in sessions?
I'd love to hear your thoughts, experiences, or any best practices you might suggest!
Thanks in advance for your help, and happy coding! 😊
The text was updated successfully, but these errors were encountered:
Hi everyone!
I'm currently developing a SaaS application using Go and the SCS package for session management, with PostgreSQL as the session store. I developped multi-step forms in the app and in one of them, users can upload images in an intermediary step. Between each step a post is made with the server to store data related to the current step in the session.
I'm considering storing these images directly in the session data managed by SCS (as byte arrays). Given that SCS stores session data in PostgreSQL, I'm wondering:
Is it a good idea to store images in SCS sessions when using a database-backed session store?
Are there any performance implications or potential pitfalls I should be aware of?
Would you recommend this approach, or is it generally discouraged to store large data like images in sessions?
I'd love to hear your thoughts, experiences, or any best practices you might suggest!
Thanks in advance for your help, and happy coding! 😊
The text was updated successfully, but these errors were encountered: