Hi all,
I am not sure where to start with this one really. I have built the template for my site but, having a few issues in trying to impliment certain things that have to happen.
This site needs to have 3 types of user.
I am using a generalization of how the site works here because to get too specific will take up a lot of space.
1.) overall admin (that would be just me and one other person who needs unlimited access to do everything)
2.) general user
3.) Business
General user and Business have their own profiles, which are very different from eachother so they are in different tables.
The General user can search through profiles of the Business user and reserve an appointment (on the site), based on appointment information provided by the business profile.
Where I am running into the issue is, when a user logs in, I need to keep note of their user type so that I can keep them logged in throughout the site under that type. Pages will have different stuff loaded based on information in the user's profile. For instance, if a general user is logged in, they will see a list of new businesses to the site and "events" that those businesses may be sponsoring that are in their state, or zip code.
I know, my explination of the site isn't all that easy to understand, but, I was hoping that someone could stear me in the right direction here.
Perhaps cookies will do it, but, how would I set different cookies based on the user type (the user type is stored in a field in the user profile).
I know that I do not want to use javascript and that I don't want to add hidden form fields (which would require forms on every page).
Any help?
Thanks
Sage