Re: Security based on session, what's wrong?
From: Brock Allen (ballen_at_NOSPAMdevelop.com)
Date: 04/27/05
- Next message: Mark A. Richman: "Re: EventLogPermission via caspol.exe"
- Previous message: S Hayes: "Re: Access Denied executing Batch File from CreateProcessAsUser"
- In reply to: Matt: "Security based on session, what's wrong?"
- Next in thread: Matt: "Re: Security based on session, what's wrong?"
- Reply: Matt: "Re: Security based on session, what's wrong?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 27 Apr 2005 06:09:22 -0700
You can always go and build your own authentication and authorization mechanism.
The intent of Forms is that much of the routine checks and identity management
is done for you. Of course there are pieces you have to fill in, such as
the login page and the database of usernames/passwords, but the check on
every page is done for you to see if the user is logged in and if they're
allowed to access the pages. The cool thing is that this is declarative with
the <authorization> elements in web.config, and there's typically little
or no access checks you have to write in your own code.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hello,
>
> I'm working on a portal derived from IBuySpy, and I have changed
>
> I check username and pwd against a database, then I make a
> Session["User"]= UserID (the ID I get from the database, if it
> exists).
> Now I create all the pages based on that ID stored in a session
> variable.
> If that user is authorized to see a certain tab, module or content,
> the page is created that way. All the auth info (user/contents) are
> stored in another database table.
> Everything works fine without use fo forms authentication.
> Is there something wrong with it? should I use forms authentication?
> why?
> Thanks,
> Mattia
- Next message: Mark A. Richman: "Re: EventLogPermission via caspol.exe"
- Previous message: S Hayes: "Re: Access Denied executing Batch File from CreateProcessAsUser"
- In reply to: Matt: "Security based on session, what's wrong?"
- Next in thread: Matt: "Re: Security based on session, what's wrong?"
- Reply: Matt: "Re: Security based on session, what's wrong?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|