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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.