I am creating a site. I will host it on Virtual Hosting...For some pages I want to implement Form Based authentication...
To create form based authentication, you have to define a security role in the configuration files of the server...
My question is that is this possible in virtual hosting as the server will be shared(not dedicated).
If it is possible how can I do it...
If not then what are the alternatives.. How can I make sure that only authenticated users can access some pages. Is session the only alternative. Even for that how to check that the user is allowed to access a page. Do I need to put the code in every page or can I do it with some application level configuration..
Of-course form based authentication can be implemented in a virtual server. First of all, there is no need to share the server in the virtual machine. But if it is need, then that is a different case. Just treat virtual machine is like any other machine.
Just go ahead with the steps to make the authentication needs. Package the application. Deploy it in the server reside in virtual machine. It should work fine!
The question is not about virtual machines, it is about virtual hosting - something completely different, where you share the server instance with other web apps, and do not have complete control over the environment.
Originally posted by Ulf Dittmer: The question is not about virtual machines, it is about virtual hosting - something completely different, where you share the server instance with other web apps, and do not have complete control over the environment.
Ya you are right....I have found that the solution could be filters....if anybody has done this earlier it will be very useful as I am facing a strict deadline....
Joined: Aug 21, 2008
Ya, I got it. Still, in virtual hosting, there is no need to share any application folder. Virtual hosting is a configuration on the server with different applications.
Form validation/ authentication is relate to an application and can be implemented with an application hosted in a virtual host.
Any light to this topic will really be appreaciable!