I'm trying to close my browser on logout button click. I know it's not an ideal way of doing things because SiteMinder that my company is using doesn't support HttpSession invalidate and logout functionality. So I will need to close window upon log out. Please see the code below for the implementation. It works fine in IE but it doesn't work in Chrome version 59. Other examples I've found so far in Stack Overflow works only for older chrome version. Can someone advice me the work around ?
export default class PopUp extends React.Component {
constructor(props, context) {
super(props, context);
autoBind(this);
}
confirm(){
var mywindow = window.open('', '_self', '');
mywindow.close();
}
render() {
return(
<Popconfirm placement="top" title={this.props.message} onConfirm={this.confirm} okText="Yes" cancelText="No">
<Button>{this.props.buttonName}</Button>
</Popconfirm>
);
}
}