You would probably need to re-glue only if you washed the bag; white glue is usually water-soluble.
You could also use Fray Check or Fray Block on the ends. (Fray Block is softer. Both are pretty much permanent.)
If it's nylon, try burning the edge outdoors (because of the fumes and smell); that would melt the end permanently.