|
-
Oct 1st, 2004, 02:21 PM
#1
Thread Starter
Fanatic Member
How much can I trust ASP?
ASP has been pretty good so far but one little thing worries me..
Some secure pages of mine, when they find he user does not have access it uses the Response.Redirect method to throw him onto the 'unauthorized user page'.
Now, is there a chance Response.Redirect might fail? If it does... would the rest of the site load, allowing him to see restricted information?
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
-
Oct 1st, 2004, 06:14 PM
#2
Re: How much can I trust ASP?
Originally posted by invitro
ASP has been pretty good so far but one little thing worries me..
Some secure pages of mine, when they find he user does not have access it uses the Response.Redirect method to throw him onto the 'unauthorized user page'.
Now, is there a chance Response.Redirect might fail? If it does... would the rest of the site load, allowing him to see restricted information?
You dont have to rely on response.redirect fully. You should use If statement and only render(send info to the brwoser) data after duing the authentication.
e.g
Instead of
VB Code:
if (Authenticate(Username)) then
'your sensetive info 1
else
response.redirect "somepage.asp"
end if
'More sensetive info 2
'more sensetive info 3
VB Code:
if (Authenticate(Username)) then
'your sensetive info 1
'More sensetive info 2
'more sensetive info 3
else
response.redirect "somepage.asp"
end if
I hope i explained it well..
[VBF RSS Feed]
There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.
If I have been helpful, Please Rate my Post. Thanks.
This post was powered by : 
-
Oct 3rd, 2004, 09:04 PM
#3
Thread Starter
Fanatic Member
Yeah you did. That is what i have been doing in some areas, but Response.Redirect just seems so much more appealing.
Thanks though! I will prob do it your way.
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|