connect-cas2 icon indicating copy to clipboard operation
connect-cas2 copied to clipboard

I deploy two web application on a machine with different ports, the session expires

Open fyzwjd opened this issue 7 years ago • 2 comments

I deploy two web application on a machine with different ports. Then I open the application A named pageA, open the application B named pageB, everything is ok. And then I back to operate pageA, send a Ajax request to node server, the problem comes.

/** logs begin**/ Doing authenticating... Can not find st in session Session { cookie: { path: '/', _expires: null, originalMaxAge: null, httpOnly: true } } Need to redirect, but matched AJAX request, send 419 /** logs end**/

I found that the infomation parsed from cookie was : {"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"}} The cas st is missing. I guess the cookie was reset when open the pageB.

I did an experiment to verify it. I deploy application A in the old machine, application B in the other machine. Everything is ok, no matter how did I switch operation on pageA and pageB.

I wonder if connect-cas2 support two web application deployed on a machine.

fyzwjd avatar Dec 19 '17 07:12 fyzwjd

my case deployed on a same PC work well.

yuyongyu08 avatar Mar 13 '18 07:03 yuyongyu08

Can you share your config? @yuyongyu08

fyzwjd avatar Jun 29 '18 06:06 fyzwjd