Hello all,
I have a website about 10 pages. One of them is login
page. I am using Simple Form Authentication with database
to allow user login and logout. My problem is whenever my
website is loaded, it goes directly to the login page and
ask for users to login. Otherwise users cannot access
other pages which only information that I want to
display. Does anyone have any ideas or sample code?
Thanks in advance
Tuan NguyenYou can specify some pages to require login, and others to not require login
via your web.config file by using the <location> tag.
Here is an example with sample code that you can download and play with.
http://www.dotnetbips.com/displayarticle.aspx?id=117
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"Tuan Nguyen" <detroit_vc@.yahoo.com> wrote in message
news:010401c3d22d$96c59bc0$a401280a@.phx.gbl...
> Hello all,
> I have a website about 10 pages. One of them is login
> page. I am using Simple Form Authentication with database
> to allow user login and logout. My problem is whenever my
> website is loaded, it goes directly to the login page and
> ask for users to login. Otherwise users cannot access
> other pages which only information that I want to
> display. Does anyone have any ideas or sample code?
> Thanks in advance
> Tuan Nguyen
Tuesday, March 13, 2012
Simple Form Authentication
Labels:
asp,
authentication,
databaseto,
form,
login,
loginpage,
net,
pages,
user,
website
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment