Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Restrict Access To Page problem

Posted 15 Apr 2006 22:37:47
1
has voted
15 Apr 2006 22:37:47 YC ong posted:
Hello!

I faced a problem for the "restrict access to page" function. When I log in at the LoginUser page as Admin access level, I should go to the page that I had set as the restrict access to page (LoginAdmin page). The problem is the address bar show correct address that point to the authorization level page but the content is show the unauthorized user page (LoginUser page). When I log in at the LoginUser page as User access level, the address bar also show the Admin page (authorization level page), but the content is the unauthorized user page.

I had chosen the restrict access based on username, password and access level in the Log In User server behavior at LoginUser page. In LoginAdmin page, I set the Restrict Access To Page and I had chosen the "select level: Admin" which follow by the database field. Then, If access denied, go to: LoginUser page.

The result at the address bar is localhost/tstweb/html/LoginUser.asp?accessdenied=%2Ftstweb%2Fhtml%2FLoginAdmin%2Easp

I really don't know why this happen because I followed all the steps to set restict access level. Please HELP!

TQ for advance.

Replies

Replied 20 Apr 2006 07:57:08
20 Apr 2006 07:57:08 YC ong replied:
I get the answer already after I tried.

Actually just change the accessLevel field's data type to text in the database. Then everything is work perfectly. Last time I faced the problem is because of the data type I set is char.

Yuki

Reply to this topic