Results 1 to 3 of 3

Thread: How much can I trust ASP?

  1. #1

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    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?

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    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:
    1. if (Authenticate(Username)) then
    2.         'your sensetive info 1
    3. else
    4.        response.redirect "somepage.asp"
    5. end if
    6.  
    7. 'More sensetive info 2
    8.  
    9. 'more sensetive info 3


    VB Code:
    1. if (Authenticate(Username)) then
    2.         'your sensetive info 1
    3.        
    4.        'More sensetive info 2
    5.  
    6.         'more sensetive info 3
    7. else
    8.        response.redirect "somepage.asp"
    9. 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 :

  3. #3

    Thread Starter
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    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
  •  



Click Here to Expand Forum to Full Width