Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / December 2006

Tip: Looking for answers? Try searching our database.

Forms Based Authentication Issue (VIEWSTATE) Login Form On Non Protected Page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kyle Peterson - 22 Dec 2006 01:04 GMT
Hi,

I am doing Forms Based Authentication using the built in tools of .NET.
Authenticating off a database with some code a wrote and using login.aspx,
web.config, etc etc... the usual deal..
I have it all working fine and pages I want to protect show a login page
before being logged in to.

The problem lies that I have a few clients that want to have a tiny login
form on an area of their homepage. So basically we are talking about a login
form on a non protected page that submits to a protected page. A lot of
sites do this as I am sure you know.

Now, because of VIEWSTATE and the fact that forms need to post to themselves
I cant just put appropriate form code on the homepage posting to some
protected page. (LIKE YOU COULD EASILY DO IN A CLASSIC ASP SCENARIO)

I turning off VIEWSTATE isn;t really an option.

So, what is the solution... is there no way to do something like this using
the built in forms authentication structure of .NET.

Any ideas or articles someone can point me to would be most appretiated. I
have searched for weeks before asking this here. I just can't come up with a
good solution other there writing something totally custom just to handle
this scenario that doesn't use the built in Forms Authentication Fetaures
but checks the user credentials, sets the authentication ticket.. all via
basic inline code..etc etc

Is that my only solution ? Is this something Microsoft left out of the forms
authentication scenarios ? Seems like it is something a lot of people want
to do.

Thanks
Kyle Peterson - 22 Dec 2006 01:23 GMT
sorry, I think I posted this in the wrong area...
I will re-post it in the correct area which I think is

microsoft.public.dotnet.framework.aspnet.security

.. and again sorry

> Hi,
>
[quoted text clipped - 31 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.