Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 27th, 2005, 10:39 AM
Registered User
Join Date: Jan 2005
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default critical problem

Hi, I am ravi, i am facing a critical problem.
Actually We have a webserver and a reportserver.
In webserver iis is running and the virtual dirctory is configured.
In report server some excel reports are there.
The user should click the link and able to download the reports after logged in.
But if the user gives a direct path to the excel report, it allows the user to download.
We have set up the aunthentication in webserver. but the problem is, if it is a direct path, it goes to the report server and picks the file. any help?

Old August 28th, 2005, 06:13 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41

This is a very basic (but effective) concept.
1..User logs in
2..Set a session variable EG session("userID") = RS("ID")
3..Now on any page you require them to be logged in place the following towards the top of the page.
IF session("ID") = "" then
end if

As you see if the havnt logged in properly they will not be able to access any page that has the above condition.

FYI : Whats the point in building a log-in page if you dont check 'are they logged in'

Wind is your friend

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Critical Section ? tal Javascript How-To 1 April 11th, 2008 04:39 PM
Critical Query ps_kaushik Access 1 March 15th, 2005 12:54 PM
Critical Problem in accessing ODBC From XP bveerendrakumar Pro VB Databases 2 June 12th, 2004 12:12 AM
Critical problem in Biztalk server Bala chandra Sekhar Biztalk 1 November 12th, 2003 05:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.