Forms authentication, downloading files and Web Dialogs

I

Iain

My applications allows files to be uploaded and downloaded.

I don't want to give direct access, instead to stream them out of an aspx
handler.

The files can have any extension.

The asp.net application (V2) has forms authentication.

What happens is that I launch a web dialog with a list of interesting files
in, each of which has a link (<asp:hyperlink>) which points to my handler and
some querystring properties which identify the file.

The problem is that the login page gets called up - specifically a new
browser window is opened. The user IS logged in so I don't see why the are
asked to log in again - unless it is that a new window has been opened.

If I move the link to the main browser window then the process works fine,
so clearly this is something to do with the web dialog.

Anyone shed any light on this?

Thanks

Iain
 
I

Iain

Iain said:
My applications allows files to be uploaded and downloaded.
The problem is that the login page gets called up - specifically a new
browser window is opened. The user IS logged in so I don't see why the are
asked to log in again - unless it is that a new window has been opened.

If I move the link to the main browser window then the process works fine,
so clearly this is something to do with the web dialog.
Some more research (and help from an offline expert) has shown that it is
another "because it's in a dialog problem".

The trick to making this work is to create a small (0 width and height)
iframe and make that the target of the link.

Iain
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,743
Latest member
WoodrowMea

Latest Threads

Top