I am working on a site that needs to restrict access to pages and documents (.pdf, .doc, etc.) to registered users. We are using the ASP.NET Membership classes to do this.
But, I'm having trouble getting it to work how I would like if someone clicks a link to a document before they are logged into the site. Currently, they will be taken to the login page and upon successful login, the document will be served in a new window, but they will still be sitting at the login screen when they close the document. What can be done to send the user to a default page and also load the document?