Hi. Can please help?
- identity impersonate is set to "true"
- user can access to unauthorised files and folders.
- one of my page which will get username and display them in the page is working fine.
- identity impersonate is set to "false"
- only authorised user will be able to access files and folders.
- page that get username and display them displays "ASPNET" instead of username.
I am using "System.Environment.UserName" to get the username. What I am trying to do is to be able to control which user is authorised to access which page and who isn't. And also to be able to display the username and store it into my database.
What's wrong?
Thanks.
- identity impersonate is set to "true"
- user can access to unauthorised files and folders.
- one of my page which will get username and display them in the page is working fine.
- identity impersonate is set to "false"
- only authorised user will be able to access files and folders.
- page that get username and display them displays "ASPNET" instead of username.
I am using "System.Environment.UserName" to get the username. What I am trying to do is to be able to control which user is authorised to access which page and who isn't. And also to be able to display the username and store it into my database.
What's wrong?
Thanks.