if I declare(regist) a session,and give it value,so how can I send the session value to another function???
Session vars are put in the global scope by default. You can access vars in the global scope from second tier functions by using:
global $var;
steve