Is it possible to pass variables from one subdomain to another using session management in php? (For example form www.mydomain.com to server2.mydomain.com)
Sure. Put this line at the top your second script.
require 'whatever.php';