473,320 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

session state and virtual directories

To better manage our secure site we just separated the registration and
checkout sections of our web into separate virtual directories. These new
virtual directories are on the same server as the primary eCommerce website.
This is an ASP site (not asp.net). When this version goes into production it
will be on a 2003 server (IIS 6) with a SQL Server backend (located on a
different server).

Now when the main server passes control to one of the new virtual webs the
session information is lost. I'm having problems finding information on the
web as to how to maintain this information between the web and virtual
directories. It's imperative that this information remain secure so query
strings or anything that would pass visible data is not an option.

If you would either direct me to a source of information or give me some
idea how you have handled this problem, I would be most appreciative.

Thank you for your time and help.
Jul 19 '05 #1
3 3657
if you right click on the virtual directories and click properties you can
remove the specific application and give it the same application scope as
the whole site. this will invariably give you the same session state.
Mark
"pleaseHelp" <wo***@rohland.org> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
To better manage our secure site we just separated the registration and
checkout sections of our web into separate virtual directories. These new
virtual directories are on the same server as the primary eCommerce website. This is an ASP site (not asp.net). When this version goes into production it will be on a 2003 server (IIS 6) with a SQL Server backend (located on a
different server).

Now when the main server passes control to one of the new virtual webs the
session information is lost. I'm having problems finding information on the web as to how to maintain this information between the web and virtual
directories. It's imperative that this information remain secure so query
strings or anything that would pass visible data is not an option.

If you would either direct me to a source of information or give me some
idea how you have handled this problem, I would be most appreciative.

Thank you for your time and help.

Jul 19 '05 #2
Thank you for the information but I'm not sure that I totally understand. In
properties of the virtual directory, I deleted the application name. I'm not
sure what you mean by "give it the same application scope as the whole
site". Does that mean the same application name?

I did give it the same application name but when I proceed to the checkout
section, I now have a new session id (different from the one in the primary
web) and when I try to access one of the session variables I get object
required: "[undefined]".

More help would be greatly appreciated.
"Mark" <no*************@nospam.rit.edu> wrote in message
news:e%****************@TK2MSFTNGP11.phx.gbl...
if you right click on the virtual directories and click properties you can remove the specific application and give it the same application scope as
the whole site. this will invariably give you the same session state.
Mark
"pleaseHelp" <wo***@rohland.org> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
To better manage our secure site we just separated the registration and
checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the primary eCommerce website.
This is an ASP site (not asp.net). When this version goes into production it
will be on a 2003 server (IIS 6) with a SQL Server backend (located on a
different server).

Now when the main server passes control to one of the new virtual webs

the session information is lost. I'm having problems finding information on

the
web as to how to maintain this information between the web and virtual
directories. It's imperative that this information remain secure so query strings or anything that would pass visible data is not an option.

If you would either direct me to a source of information or give me some
idea how you have handled this problem, I would be most appreciative.

Thank you for your time and help.


Jul 19 '05 #3
I don't think the idea suggested will work. You'll have to store/persist the
session info in a database, and pass a lookup key between pages (hidden form
variable, querystring, etc).

When ever you cross virtual directory boundries in standard ASP, you will
lose session info. .NET has some solutions for this.

Jeff

"pleaseHelp" <wo***@rohland.org> wrote in message
news:#2**************@tk2msftngp13.phx.gbl...
Thank you for the information but I'm not sure that I totally understand. In properties of the virtual directory, I deleted the application name. I'm not sure what you mean by "give it the same application scope as the whole
site". Does that mean the same application name?

I did give it the same application name but when I proceed to the checkout
section, I now have a new session id (different from the one in the primary web) and when I try to access one of the session variables I get object
required: "[undefined]".

More help would be greatly appreciated.
"Mark" <no*************@nospam.rit.edu> wrote in message
news:e%****************@TK2MSFTNGP11.phx.gbl...
if you right click on the virtual directories and click properties you

can
remove the specific application and give it the same application scope as
the whole site. this will invariably give you the same session state.
Mark
"pleaseHelp" <wo***@rohland.org> wrote in message
news:en**************@TK2MSFTNGP12.phx.gbl...
To better manage our secure site we just separated the registration and checkout sections of our web into separate virtual directories. These new virtual directories are on the same server as the primary eCommerce

website.
This is an ASP site (not asp.net). When this version goes into production
it
will be on a 2003 server (IIS 6) with a SQL Server backend (located on a different server).

Now when the main server passes control to one of the new virtual webs

the session information is lost. I'm having problems finding information on the
web as to how to maintain this information between the web and virtual
directories. It's imperative that this information remain secure so query strings or anything that would pass visible data is not an option.

If you would either direct me to a source of information or give me

some idea how you have handled this problem, I would be most appreciative.

Thank you for your time and help.



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dave Ainslie | last post by:
How do I send session variables between two web directories? I have two sites on my web server I wish to send cookies between. Thanks in advance Dave
4
by: Rahul Chatterjee | last post by:
Hello All I have 2 websites both using different style sheets (.css). The stylesheets are stored in a session variable and get set at the time the site gets invoked. What is happening is...
2
by: scott_shuster | last post by:
Hi, I need to preserve state as I'm Response.Redirecting to a page in a subfolder elsewhere in my web. However, everytime I redirect, my session vars are cleared out. Are Session variables...
1
by: tractng | last post by:
Guys, Can a session be good for two different virtual directories under the same site? They are for internal use only. Would the session be carried from the virtual directories? For...
0
by: none | last post by:
Hi, I've got a problem with losing session state in ASP.NET version 2. It does it intermittently - sometimes it tanks - and sometimes it works OK. I've got the ASP.NET state service started...
10
by: Nils Erik Dall | last post by:
Hi All I have a problem with my asp code on an iis 6.0 server on windows 2003 web. When I redirect between to asp pages on my web-site, where pageA is in a different virtual directory from pageB...
1
by: =?Utf-8?B?Um9iIFRob21zb24=?= | last post by:
Hi I have a web site, with 2 virtual directories under it. All share the same app pool, and have session set to StateServer via the machine config level. I want to manage state timeouts and do...
7
by: gnewsgroup | last post by:
In my asp.net 2.0 web application, in Web.config, I have timeout="30", s l i d i n g E x p i r a t i o n = "true" for the Authentication element. I suppose, this means that as long as we...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a web application vs2005 and it looks like a condition is causing session veriables to be lost. This does not seem to be happening too often. The web application allows uploading and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.