Update index.js

use session to transfer the arguments values from different pages