Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to access sesion object from subweb.

Status
Not open for further replies.

AnNguyen

Programmer
Jul 18, 2002
33
0
0
US
Hi all. I need your help and my question is that can a web page in a subweb access sesion value created from parent web side?

Let say I have web site A that has subweb B. In A i have and 2 ASP files, Set.asp and get.asp. i also have the get.asp in subweb B.

'Set.asp
<%@Language=VBScript>
<%
Response.Session("myname") = "AAAAAAA"
%>

'get.asp
<%@Language=VBScript>
<%
response.write(Request.Session("myname"))
%>

when i run set.asp then get.asp , the get.asp will write AAAAAAA in the browser (every thing OK here).

when i run set.asp in A then Get.asp in B i do not get the AAAAAAA as above.
is there any way to achieve this (access session from subweb)??. if not is there way to create session into a subweb

Any help, reference would be much appreciated.
Thank you.



 
I am a little confused by your terminology.

It sounds like you are describing two separate IIS web applications except that one just happens to live higher up the file system's directory structure than the other... is that correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top