Remembering a session in a web game...

Hi!
How can remember the session of a user (username and password) on a web game made with panda3d that is embedded in a page made with HTML5 and PHP?. I’ve been reviewing some examples of php and javascript but still can not solve the problem.
PS: I know very little of development web.
Thanks for any help or suggestion!