"Daniel Walzenbach" <da**********************@freudenberg.de> wrote in
message news:5a****************************@phx.gbl...
Hi,
I have an application using "Forms authentication".
Everything works perfectly well except when I try to open
a new page with java script like the following:
<script language='javascript'>window.open
(myPage.aspx','','Fullscreen=no; Scrollbars=yes;
Menubar=no; Locationbar=no; Resizable=yes; Status=no;')
</script>
I now get to see the login page. Does anybody know how to
prevent this behaviour?
I haven't tried this myself, but I would think that if the page you're
opening is in the same domain as the site you authenticated to, that there
would be no problem.
The question comes down to whether the authentication cookie is sent to the
server by the second page. If it wasn't sent, it would most likely be
because of different domains. For instance, if you authenticated at
http://area.company.com, and you're trying to open a page at
http://somewhereelse.company.com, it should succeed if the authentication
cookie was in domain "company.com", but not if it was in domain
"area.company.com".
As a diagnostic, put a link to your "myPage.aspx" on the page and click the
link and see what happens.
Also, what browser are you using?
--
John Saunders
John.Saunders at SurfControl.com