Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2004, 12:51 PM
Registered User
 
Join Date: Apr 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session Object Scope

In our intranet, we have several webforms that were created in Visual Studio .NET. Each webform was created in its own folder. For example,
wwwroot/login
wwwroot/survey
wwwroot/chatroom

The book talks about the session object and gives an example within one project (thus one folder). My question is will the survey and chatroom webforms be able to see the session values that were stored in the login webform given they are each in different folders?

If not, why not? How would this be fixed?

Thanks,


-Aaron
 
Old May 3rd, 2004, 04:32 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It depends. If you have changed the Login, Survey and Chatroom folders in to Virtual Directories, they are considered to be three different applications that don't share session state.

However, if they all share the same parent (that is, Default Web Site for example) that points to wwwroot, *and* the sub folders are not marked as a Virtual Directory / Application, then all three folders will share session state (they will be seen as normal subfolders).

If you want the three folders to share session state, make sure you have a parent application that points to their parent folder. All three sub folders should be left as is; that is, not marked as a VD.

Does this help?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session object keyvanjan Classic ASP Basics 1 January 25th, 2006 09:32 PM
dictionary object with session scope lcsgeek Classic ASP Basics 1 May 3rd, 2005 09:48 AM
Session Object mcinar Classic ASP Basics 9 January 9th, 2005 05:41 PM
Tomcat, Linux and Session scope. shantawn Apache Tomcat 1 November 14th, 2004 01:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.