Wireless Sensor Networks consists of sensor nodes that are networked in a surveillance area. Security is considered as one of the vital issues in the area of sensor networks. This work proposes an efficient scheme that deals with the availability of a mobile node for secure communication and introduces session time within which the secured secret key remains valid. The analysis and simulation results show that the performance of the proposed scheme is better than the existing schemes.