PDA

Click to See Complete Forum and Search --> : Form Authentication


rmoghal
Dec 22nd, 2004, 08:23 AM
My application requires an authentication and user is required to enter the username and pass. I have done this by form authentication. My application shows loginadmin.aspx for username and pass, if they are correct then it jumps to default.aspx.
I tried to go directly to default.aspx by tying the URL and it took me there no login nothing:(
well i m new to ASP.NET please help

Thanks

Danial
Dec 22nd, 2004, 11:40 AM
Try this tutorial, should help..
http://www.4guysfromrolla.com/webtech/110701-1.shtml

rmoghal
Dec 23rd, 2004, 02:34 PM
Before taking to default.aspx webconfig file redirects all the unauthenticated users to the login page, after successful login it takes user to default.aspx, instead of clicking SignOut if user closes the form and try again the same URL he or she directly goes to the default.aspx, why??? I want them again to be prompted for login.

Please help

pavan
Jan 11th, 2005, 02:02 AM
Before taking to default.aspx webconfig file redirects all the unauthenticated users to the login page, after successful login it takes user to default.aspx, instead of clicking SignOut if user closes the form and try again the same URL he or she directly goes to the default.aspx, why??? I want them again to be prompted for login.

Please help


may be teh authentication cookie has expired. Make it a persistant cookie with a long expiry period.

jpfolin
Jan 15th, 2005, 10:07 PM
You can store the login/password in Session variables in the login page.
On the default page you check those Session variables for the same values as defined for the user (NT authentication) in the db.