IIS ASP - session state and virtual directories

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > June 2004 > session state and virtual directories





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author session state and virtual directories
pleaseHelp

2004-06-30, 6:01 pm

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.


Mark

2004-06-30, 6:01 pm

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" <woody@rohland.org> wrote in message
news:en8x94rXEHA.2364@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.
>
>



pleaseHelp

2004-06-30, 6:01 pm

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-mkg6071-spam@nospam.rit.edu> wrote in message
news:e%23jUH$rXEHA.2840@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" <woody@rohland.org> wrote in message
> news:en8x94rXEHA.2364@TK2MSFTNGP12.phx.gbl...
new[vbcol=seagreen]
> website.
production[vbcol=seagreen]
> it
the[vbcol=seagreen]
> the
query[vbcol=seagreen]
>
>



Jeff Dillon

2004-06-30, 6:01 pm

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" <woody@rohland.org> wrote in message
news:#2CX6xsXEHA.3016@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-mkg6071-spam@nospam.rit.edu> wrote in message
> news:e%23jUH$rXEHA.2840@TK2MSFTNGP11.phx.gbl...
> can
as[vbcol=seagreen]
and[vbcol=seagreen]
> new
> production
a[vbcol=seagreen]
> the
on[vbcol=seagreen]
> query
some[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com