I am using my own authentication method by cookies and username and password verification from database but when I debug my application i can access any folder and image, pdf etc. type files by directly typing the url of that without Log-In. So i want to all these type of unauthorized access to folders and files both to be redirected to default.aspx page.
please help me.
I am using my own authentication method by cookies and username and password verification
Share
Try this,
change the
[subdir]to the folder you want to protect. For more info see Here