I have a reusable library to login into the application and I have to use a login reusable library to do action after the login page. But I am not able to execute in the same session as the new session is getting opened

I have a reusable library to login into the application and I have to use a login reusable library to do action after the login page. But I am not able to execute in the same session as the new session is getting opened.

Can you please help me with the solution, I am completely new to UI path

Thanks
Nikhil