Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using grails flash object and load balancing

In our application we have used flash object to transport data from one controller to another by grails redirect(). Does it pose any loss of data/threat since our application is using load balancing and non-sticky sessions (we are using memcached for our own session management mechanism) ? I read the grails doc says it "stores objects within the session for the next request and the next request only" ? Does it mean flash is actually using session in the background ?

like image 227
tusar Avatar asked Jan 31 '26 10:01

tusar


1 Answers

Yep, you're absolutely right. Flash uses the http session to store stuff so if you're using a load balancer without sticky sessions you shouldn't use flash scope.

like image 169
rcgeorge23 Avatar answered Feb 02 '26 05:02

rcgeorge23



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!