Securing 1 page - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Securing 1 page

adspaceadspace Posts: 1Member
I am trying to figure out a way for specific users of our system not to be able to use one of our pages. We use a session variable (Account Number) on every page to keep non users from accessing our pages.

I have an MS Access Data Base where I add customers and it is linked to our sql server and would like to use a field called "ElectronicBill" in our Access Data Base. We would like to be able to Add a "1" in the "ElectronicBill" field for customers who do not have access to the page and be redirected some place.

This is our typical header:

<% RESPONSE.EXPIRES=0 %>

<% IF SESSION("AccNumber")="" THEN
RESPONSE.REDIRECT "timeout.htm"
END IF
%>


Comments

  • iwilld0itiwilld0it Posts: 1,134Member
    Boy that is some old-style asp ... consider using Forms Authentication ... you should be able to research this online ...


    : I am trying to figure out a way for specific users of our system not
    : to be able to use one of our pages. We use a session variable
    : (Account Number) on every page to keep non users from accessing our
    : pages.
    :
    : I have an MS Access Data Base where I add customers and it is linked
    : to our sql server and would like to use a field called
    : "ElectronicBill" in our Access Data Base. We would like to be able
    : to Add a "1" in the "ElectronicBill" field for customers who do not
    : have access to the page and be redirected some place.
    :
    : This is our typical header:
    :
    : <% RESPONSE.EXPIRES=0 %>
    :
    : <% IF SESSION("AccNumber")="" THEN
    : RESPONSE.REDIRECT "timeout.htm"
    : END IF
    : %>
    :
    :
    :
Sign In or Register to comment.