prathiv23,
You can use a mbox parameter or profile attribute to capture the logged in status.
This can be used in conjunction with customer attributes authentication states if you would like or else just capture the status in an mbox parameter using methods described in Methods
For example, see this Customer Attributes demo.
Log-in as “weretailvip@gmail.com” and use “Adobe” as Company Name and leave the default number.
You will see an mbox parameter called auth which tracks log-in state and is then used in segmentation – the mbox parameter is just set via Launch.
Screenshots below. https://xrayuk-publish.adobedemo.com/content/we-retail/language-masters/en.html
Hope this helps.