I am trying to make something that when a user querys another user they are then put into a session, and the second user can either accept or decline, and if so the sessions ends. What would be a good way to do this?
To use a pre-made program from Tucows. Sounds like you are trying to make a chat type session. Go to http://www.tucows.com and download a free chat program, or, get one off this site.
Look in the Code library on this site, under BBS/Discussion. You should find pre-made programs, as well as the scripting to assist you in designing your own.