Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > setting up virtual directory pointing to same web server

Reply
Thread Tools

setting up virtual directory pointing to same web server

 
 
mbosco51@hotmail.com
Guest
Posts: n/a
 
      03-13-2007
Hi. I have an external facing website that has both a customer login
and an admin login. I want to prevent external access to the admin
login for security reasons. On the same webserver I created a new
website running on a different port for the admin piece. So my
directory structure looks like this...

c:\inetpub\wwwroot\customer\
c:\inetpub\wwwroot\admin\

All the admin login pages are now stored under admin. However after
the initial few login pages the websites are the same. I definitely
dont want to duplicate all the non-login pages across both websites
and I can't transfer control to the other website after the admin logs
in because the session wouldn't be maintained. So what I plan on
doing is creating a virtual directory under admin like so...

c:\inetpub\wwwroot\admin\virtual\

where the virtual path points to c:\inetpub\wwwroot\customer\. This
way I can then link to all the non-login pages without having to store
them in two different places and my session will hold because I am not
transferring control to another website. I am assuming this would not
have an adverse affect on the normal customer login.

Does anyone forsee any problems with this approach?

Thanks.

 
Reply With Quote
 
 
 
 
mbosco51@hotmail.com
Guest
Posts: n/a
 
      03-13-2007
On Mar 13, 12:01 pm, mbosc...@hotmail.com wrote:
> Hi. I have an external facing website that has both a customer login
> and an admin login. I want to prevent external access to the admin
> login for security reasons. On the same webserver I created a new
> website running on a different port for the admin piece. So my
> directory structure looks like this...
>
> c:\inetpub\wwwroot\customer\
> c:\inetpub\wwwroot\admin\
>
> All the admin login pages are now stored under admin. However after
> the initial few login pages the websites are the same. I definitely
> dont want to duplicate all the non-login pages across both websites
> and I can't transfer control to the other website after the admin logs
> in because the session wouldn't be maintained. So what I plan on
> doing is creating a virtual directory under admin like so...
>
> c:\inetpub\wwwroot\admin\virtual\
>
> where the virtual path points to c:\inetpub\wwwroot\customer\. This
> way I can then link to all the non-login pages without having to store
> them in two different places and my session will hold because I am not
> transferring control to another website. I am assuming this would not
> have an adverse affect on the normal customer login.
>
> Does anyone forsee any problems with this approach?
>
> Thanks.


Actually now that I try to work through this it looks like my approach
will not maintain the session. My session id is changing when I cross
into the virutal path. Any suggestions?

Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deployment project - create virtual directory pointing to Application folder kplkumar ASP .Net 0 06-02-2006 04:55 PM
"Web setup" project - needs to create Virtual Directoy pointing to Program Files kplkumar@gmail.com ASP .Net 0 04-12-2006 05:26 PM
Redirect multiple domains pointing to the same folder Greg ASP .Net 3 02-22-2006 11:59 PM
System.UnauthorizedAccessException: Access to the path error on virtual dir pointing to a network share only! Bill Nguyen ASP .Net Security 0 02-17-2005 01:21 AM
question regarding overriding of web.config in the root directory..in a web app in a virtual directory dotnetprogram ASP .Net 1 12-27-2003 06:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57