Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Session Start, Global.asax, and multiple sites! IDEAS


Message #1 by "John Hamman {Hamman Interactive}" <johnhamman@C...> on Thu, 18 Apr 2002 11:38:54 -0400
Hi all,
 Ok I have multiple sites on my server that i can only have domain pointers
and not multiple vitural host. So what I have done is in the global.asax
file read what what domain that the user is coming from and directed them to
a folder for that domain. Below is that code. But what the problem is that i
would like if the user has a specified address that there trying to go to
that it doesnt take them to the sessionstart folder. for example. if a user
comes to my site by typing the url: www.mysite.com it redirects them to
www.mysite.com/c_mysitefolder/ but if the user puts in the address
www.mysite.com/c_mysitefolder/somepage.aspx it takes them to
www.mysite.com/c_mysitefolder/ instead. How can i let them go to a specific
page in the site and also keep them out of the other sites. Other sites are
in different folders. Does this make sence? So basicly if user is trying to
visit the sites default page at a new fresh session it sends them there. If
there trying to visit a specified page in the site in a new session it lets
them go there, and if they havent done anything on the site in a while but
start up again after they have been idle, it wont take them to the front of
the site, and lastly it wont let them visit any other folder in the root
that is not for there site.
thanks
john


  Return to Index