How to maintain session in multiple tabs in same browser ?

Posted by Kasani007 under AngularJS on 6/20/2017 | Points: 10 | Views : 172 | Status : [Member] | Replies : 1
How to maintain session in multiple tabs in same browser and session has to clear or destroy after browser is closed ?




Responses

Posted by: Manishkr1608 on: 6/20/2017 [Member] Starter | Points: 25

Up
0
Down
I think you can do it by following steps -
1. When login for 1st time store user id, logged in ip and logged in browser in some table tbltemp
2. If a person tries to visit website then 1st check whether there is any entry with same ip + browser if yes then user is already logged in
3. For session to clear you should call log out on beforeunload in client

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response