i am creating a site, which is a Library Management system, here there are 2 types of user, Host (SuperUser), Faculty. Now i want to show up menus, these menu should be based on the user logged in, like if SuperUser has logged in, he should be able to see everything, whereas if Faculty has logged in, he/she should be able to see only his/her details, now here i have 3thoughts:
To generate the menu based on the User, from the Database. i mean i would be saving the menu-items in the database and would fetch the menus based on the user logged in Directly code in page so as to enable disable the menu-item based on the user logged in.To generate xml file containing the menus as per user, and fetching menus from there as per the user logged in.
As i want more performance optimisation from my site, which technique would save me performance, or is there any other best way to populate menu's with ease and performance.
Please advice.
Try using a SiteMap: http://msdn.microsoft.com/en-us/library/ms178428(v=VS.100).aspx. It can handle Roles.
Related
I am trying to create my application with Google app maker and Ineed to create login with different accounts? how can I create a login with different users roles and each user has a specific pages to see
There's a simple way to do this. Please click on the links in my answer below to go to the screenshot I've added for reference.
Go to App Settings -> Security and add roles you would like to create for your app in the space provided.
In a page, you can go to the Property Editor, scroll down to Security and mention who can see this page.
In a model, you can add controls by going to the Security tab and selecting relevant roles for specifying who can create, load, save or delete records for that model.
Finally, to mention which email address goes into which role, you can go to a specific deployment and add the email addresses for each role manually.
Let me know if this helps. Feel free to ask any questions you may have!
I am told to make a wordpress site where i will be having a registration form.. Once the registration is done. The person will be logging in. And on one page say 'collogues', the logged in person will be able to see all the other registered people's photo and their names. And if he opens that photo, the profile will appear. (Profile details taken while registration).
Just like a social media but no friend request, no comments nothing else. Not even algos to match the gender.
Simple login and you will be able to see other people's profile pages and probably edit your profile every now and then....
Your task seems simple. You may use Members plugin to build login system and then upon logging users in you can fetch all users from wp_users table and link their profile to single.php, where its displays all user data.
I'm planning to design a website which allows users to register and log into the system.
My idea is that when the user logs into the system, he will be redirected to selfoss (a single-user RSS reader) and he can customise it based on his needs.
Although I have successfully implemented the user registration and login system, I have no idea how to implement the latter, which is to turn selfoss (single-based) into a multiple-user platform where each user can only access his own customised RSS reader when logging in. So, when the user logs into the system next time, all his previous settings for that customised RSS reader will also be reloaded.
Can I have some references and guidance on the implementation of such system? Thanks in advance!
Since you already have login implemented I am assuming you have a way to identify individual users.
You can then extend your data model by adding an rss table with a relation back to your user table, so that you based on userid can associate a customized feed to the logged in user.
can anybody tell me if its possible to retrieve a list of a member's pages without manage pages permissions? or if its possible to send the graph a facebook page id and have it return whether or not the current FB user admins the page.
i have a page tab application which a FB user can install to one of their pages, and in order to show the relevant info regarding the current FB user from my website on their facebook page, i need to know that the page they have given me is administered by them.
since i dont want any control over the page itself, only to know that the page id ive received is associated with the current FB user, asking for permissions to log in as any and all of their facebook pages seems like a bit of an excessive permission
I have a very basic understanding of ASP.NET and I am trying to do the following. I have a home page that is set-up to be a login page. If you could just picture a username and password box that is the extent of that home page. Once the user is logged in they will go to a different page let's say the account page. However, when the user clicks the logo at the top left hand it takes them to the home page again but it shows the username and password boxes again ready to be filled.
The user status at the top of my page still shows that the user is logged in. What I am trying to do is add a piece of code that will change the link of the logo to display the account page once they are logged in and not the login page.
I don't know if this can be done through the web.config file since I read a different article that has something similar to this or if this code can be put directly next to the code where my logo link (default.aspx) sits.
Many thanks in advance!
Research the Membership Provider.
It's an industry standard in ASP.NET session management. It will manage all of your pages and allow you to customize pages, menus, etc. based on roles and permissions. Don't reinvent the wheel if you have the oppertunity to use it.
Straight from MSDN:
ASP.NET membership supports facilities
for:
Creating new users and passwords.
Storing membership information (user
names, passwords, and supporting data)
in Microsoft SQL Server, Active
Directory, or an alternative data
store.
Authenticating users who visit your
site. You can authenticate users
programmatically, or you can use the
ASP.NET login controls to create a
complete authentication system that
requires little or no code.
Managing passwords, which includes
creating, changing, and resetting them
. Depending on membership options you
choose, the membership system can also
provide an automated password-reset
system that takes a user-supplied
question and response.
Exposing a unique identification for
authenticated users that you can use
in your own applications and that also
integrates with the ASP.NET
personalization and role-management
(authorization) systems.
Specifying a custom membership
provider, which allows you to
substitute your own code to manage
membership and maintain membership
data in a custom data store