Forcing user to login

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi all

Am using the following line of code in the web.config file to force the user to log in at a particular page so that no unauthorized user can get into my project. The line of code is:
Code:
<forms loginUrl="Employees.aspx" path="/" protection="All" timeout="20">

Now this line of code work no problem in that it does what its suppose to do. However, I need to use frames in the project (I know I was told to stay away from them, but I have to use them in this project) in particular a left and a right frame (menu/navigation components will be stored in the left frame, the pages will be displayed in the right frame.

When the frames are used, if a user tries to bypass the main login page they are hauled back to the login screen, but with the frames enabled the login screen now appears in the frame on the left of the screen. This further complicates things in that if the user goes ahead and tries to log in and are successfull then the left frame is subdivided into 2 further frames while the right frame is ignored.

Any suggestions on how to get around this LITTLE problem.

Mike55.
 
Back
Top