i know this is a C# Discusssion forum, my questions are always in VB.net
sorry
In the website we have several folders, some folders are accessible by anonymous users, others are accessible by members only, some by administrators or a both administrators and members can view this folder.
Each folder contains some forms; these forms are based on the role as well.
We'd like to add "user.identity" as to authenticate the user based on the user_id from table websit_ users
However we are not sure , wither we need to specify each and every form, folder or this will be done automatically once authentication is applied.
And where do we put the user.identity and what is the exact format of it.
Do we include it in our Global.asax after the authentication part?!
This is the code in global.asax
VB.NET |
We need your help, can any1 advice ASAP?!

PJ MartinsRank #2,548 · 548 reputationPosted Jun 1, 2010, 10:44 AM EDT
ie Session["User"] = user_id
note: you can assign any object you'd like to Session["User"]
This will allow you to access the object from any form as long as the session is valid.