user1069997
user1069997

Reputation: 1

How to manage a redirect request after a window.Open()

I am using window.Open() to call a controller action. This will cause the popup of view to happen. All works well except if session times out. If that happens a popup of the login screen appears.

var windowHandel = window.open( bla bla bla);

Using windowHandel, is there a way to see if I got the logon screen?

Upvotes: 0

Views: 122

Answers (1)

James Montagne
James Montagne

Reputation: 78650

This is generally easier to handle in the popup itself. Rather than forwarding to the login screen directly, forward to a screen with some javascript which sets the location of window.opener (the original window) and then closes the popup.

Upvotes: 1

Related Questions