Is it possible to run php codes inside rollbase pages since rollbase pages are rendered as HTML files? if not is there any way for me to create sessions(Like php session) wherein I can use this session in other pages that is not part of rollbase pages. Thanks in advance.
Yes, absolutely. For instance, you can create Menu (Tab) of type "Web" and point URL to your PHP resource. The content will be displayed as Rollbase page (with header and sidebar).
Use Rollbase Verification API to verify valid Rollbase session (Chapter 11)