J
|
Jane 8/5/2008 |
Sheryl, |
|
skemp author 8/5/2008 |
Sheryl, where do you use this code? You need to add this code to the Login page: Before process event.
|
J
|
Jane 8/5/2008 |
If you use User can see and edit their own records only security method you need to fill some required Session variables (Session("OwnerID"), Session("_tablename_OwnerID") etc.). If Request.ServerVariables("LOGON_USER")<>"" then SESSION("UserID") = Request.ServerVariables("LOGON_USER") SESSION("AccessLevel") = ACCESS_LEVEL_USER str = "select * from UsersTable where Loginname='" & SESSION("UserID") & "'" Set rstmp = server.CreateObject("ADODB.Recordset") rstmp.open str,dbConnection Session("OwnerID") = rstmp("OwnerIDField") Session("_HardwareRequests_OwnerID") = rstmp("OwnerIDField") rstmp.close set rstmp=nothing Response.Redirect "Menu.asp" End if |
|
skemp author 8/5/2008 |
If you use User can see and edit their own records only security method you need to fill some required Session variables (Session("OwnerID"), Session("_tablename_OwnerID") etc.). Here is the list of all ASPRunner Session variables: http://www.xlinesoft.com/asprunnerpro/docs...n_variables.htm Here is a sample:
|
J
|
Jane 8/6/2008 |
Sheryl, |
|
skemp author 8/6/2008 |
Sheryl, You have added your code to the generated login.asp page, not to the event.
|
|
skemp author 8/6/2008 |
Hi, |
|
skemp author 8/6/2008 |
Hi, It finally worked after just adding it to the login page!! Thank you for your help. Question: as for filtering the cases based on 'user can edit and see only their own data'. will I need to add code to each page listing?
|
J
|
Jane 8/7/2008 |
Hi, |
|
skemp author 8/7/2008 |
Hi, use need to replace OwnerIDField with your actual field name.
|
J
|
Jane 8/8/2008 |
Send email with description of your problem to support@xlinesoft.com. |