charon
01-02-2003, 04:11 AM
Hi,
The user will be prompted for their User Name and ProjectID to access to the Administration module. The select list will be displayed base on their projectID, for instances:
<%If Session("projectID") = "project1a" Then%>
<option value="document1">Doc 1</option>
<option value="document2">Doc 2</option>
<option value="document3">Doc 3</option>
<option value="document4">Doc 4</option>
<%End If%>
<%If Session("projectID") = "project1b" Then%>
<option value="document5">Doc 5</option>
<option value="document6">Doc 6</option>
<option value="document7">Doc 7</option>
<option value="document8">Doc 8</option>
<%End If%>
Due to there are many projects with different documents which only allow to view or edit by certain users, so I have to set the user permission. Below is my database.
UserName ProjectID
Ivy project1a
cristine project1a
Amy project1b
Micheal project1c
--
--
--
for the user to access to the module they are request to enter their username and projectID,and the projectID later will be saved in Session("projectID").
My concern is that, can't it be no secure since I need to hard code the projectID in my asp page???
if other people be a ble to access my pc and view the code, then the data might be no secure.
Please advice!
The user will be prompted for their User Name and ProjectID to access to the Administration module. The select list will be displayed base on their projectID, for instances:
<%If Session("projectID") = "project1a" Then%>
<option value="document1">Doc 1</option>
<option value="document2">Doc 2</option>
<option value="document3">Doc 3</option>
<option value="document4">Doc 4</option>
<%End If%>
<%If Session("projectID") = "project1b" Then%>
<option value="document5">Doc 5</option>
<option value="document6">Doc 6</option>
<option value="document7">Doc 7</option>
<option value="document8">Doc 8</option>
<%End If%>
Due to there are many projects with different documents which only allow to view or edit by certain users, so I have to set the user permission. Below is my database.
UserName ProjectID
Ivy project1a
cristine project1a
Amy project1b
Micheal project1c
--
--
--
for the user to access to the module they are request to enter their username and projectID,and the projectID later will be saved in Session("projectID").
My concern is that, can't it be no secure since I need to hard code the projectID in my asp page???
if other people be a ble to access my pc and view the code, then the data might be no secure.
Please advice!