After assigning id to session it automatic converted

Please mind the environment of this Application. I'm using

  1. Windows
  2. NPM, Express
  3. MySQL

I am assigning id to session when user try to login.

var id = rows[0].id;
req.session.id = id;
console.log(req.session.id);

Here I got 7.

But when I try to get that id by this code.

var userid = req.session.id;
console.log(userid);

I got this mscG7oGPfLA1VYRUz5ltSZ4u.

My actual user id is 7.