Do not keep your phone stored in a purse or other closed container for extended periods of time unless it is powered off. Charging a mobile phone in a closed container is a potential fire hazard and may shorten its lifespan. Li-ion batteries (typical for most phones) give off heat when charged and when discharging. Always use genuine chargers and accessories. Cheaper ones that are not compatible or made for going with your brand of phone can harm the phone or lessen its lifespan.
If you do get your phone wet, see How to save a wet cell phone.
The best way to make sure the battery lasts a long time is to power cycle it at least once a week. Keep your battery percentage between 40%-80% for longer battery life.
Find flight mode on your phone and make use of it when you don’t wish to be disturbed.