Hi Siva,
When we are using QoS-->0 there is no acknowledgment of our messages but when we are using QoS----> 1/2 we get acknowledgement of every messages however the message and acknowledgement flow varies in both QOS---> 1/2, when is comes to broker
for client connection it can request a persistent session which means, when the clean session flag is set to true, the client does not want a persistent session i.e broker does not stores/saves any of the messages in the location (var/lib/mosquitto/mosquitto.db)
whereas When the clean session flag is set to false, the client wants a persistent session i.e broker stores/saves all of the messages in the location (var/lib/mosquitto/mosquitto.db)
There is client persistent session where client expiration period is configured
persistent_client_expiration 2m
persistent_client_expiration 14d
persistent_client_expiration 1y
I hope this will clear all your doubts
Regards