I am trying to create a customized area that closes automatically when a freelancer and a buyer end their working sessions on a freelance marketplace. Which is the best way to go arouns it? It is wordpress, should I use PHP only or use Javascript?

Hello web designers and developers.

o give a bearing of what I am trying to achieve, I am working on a client’s site: Studyhelp247

There are both freelancers and buyers. There is a secure exchange platform. However, I am trying to create a secure type of input within the secure area where sensitive details, such as passwords, are temporarily stored and after the collaboration is over, it is automatically deleted. Which is the best way to go around this?