Hi there!
I have a website partly written in ASP in where a shoppingbasket is used.
The products of the shoppingbasket are stored in the session-object. (We
use IIS6 on Windows 2003). This was working well for a couple of days. But,
after a while everytime I reload the shoppingbasket I see different products
which I've never added. So it seems like I'm seeing the basket of another
customer.
As it seemed IIS was 'sharing' sessions between different users I created
this little testcode:
---------------
if Session("P")="" then
Session("P") = 1
else
Session("P") = Session("P")+1
end if
Response.Write "*" & Session("P") & "*" & Session.SessionID
---------------
It should return always an iterating numer (1 , 2 3, etc etc). But sometimes
incosistent it jumps back to a previous number or starts at 1 and after a
while jumpe back to for example 365.
As I never experienced this behavior before I tried the same on Windows 2000
(IIS5). Both the testscript and the shoppingbasket are working correctly. So
It seems there is a bug in IIS6 or there there is something mis-configured.
What am I doing wrong here?
Regards,
Ronald 5 1649
You are correct that this should just give you 1,2,3,4... But, is your cart
system its own application in IIS? Is it possible that there are other
pages in your site that are using this same session variable name? Session
variables are application-wide.
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message
news:ut******************@amsnews05.chello.com... Hi there!
I have a website partly written in ASP in where a shoppingbasket is used. The products of the shoppingbasket are stored in the session-object. (We use IIS6 on Windows 2003). This was working well for a couple of days.
But, after a while everytime I reload the shoppingbasket I see different
products which I've never added. So it seems like I'm seeing the basket of another customer.
As it seemed IIS was 'sharing' sessions between different users I created this little testcode: --------------- if Session("P")="" then Session("P") = 1 else Session("P") = Session("P")+1 end if Response.Write "*" & Session("P") & "*" & Session.SessionID ---------------
It should return always an iterating numer (1 , 2 3, etc etc). But
sometimes incosistent it jumps back to a previous number or starts at 1 and after a while jumpe back to for example 365.
As I never experienced this behavior before I tried the same on Windows
2000 (IIS5). Both the testscript and the shoppingbasket are working correctly.
So It seems there is a bug in IIS6 or there there is something
mis-configured. What am I doing wrong here?
Regards,
Ronald
Within the test-script the sessionvariable is unique, so it is not possible
that de sessionvariable is alterd by another script.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ue**************@TK2MSFTNGP11.phx.gbl... You are correct that this should just give you 1,2,3,4... But, is your
cart system its own application in IIS? Is it possible that there are other pages in your site that are using this same session variable name?
Session variables are application-wide.
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message news:ut******************@amsnews05.chello.com... Hi there!
I have a website partly written in ASP in where a shoppingbasket is
used. The products of the shoppingbasket are stored in the session-object.
(We use IIS6 on Windows 2003). This was working well for a couple of days. But, after a while everytime I reload the shoppingbasket I see different products which I've never added. So it seems like I'm seeing the basket of
another customer.
As it seemed IIS was 'sharing' sessions between different users I
created this little testcode: --------------- if Session("P")="" then Session("P") = 1 else Session("P") = Session("P")+1 end if Response.Write "*" & Session("P") & "*" & Session.SessionID ---------------
It should return always an iterating numer (1 , 2 3, etc etc). But sometimes incosistent it jumps back to a previous number or starts at 1 and after
a while jumpe back to for example 365.
As I never experienced this behavior before I tried the same on Windows 2000 (IIS5). Both the testscript and the shoppingbasket are working
correctly. So It seems there is a bug in IIS6 or there there is something mis-configured. What am I doing wrong here?
Regards,
Ronald
You verified this really fast. You know for a fact that throughout the rest
of the entire site, assuming it's all one application, that this session
variable is not used anywhere else?
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message
news:HW******************@amsnews05.chello.com... Within the test-script the sessionvariable is unique, so it is not
possible that de sessionvariable is alterd by another script.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:ue**************@TK2MSFTNGP11.phx.gbl... You are correct that this should just give you 1,2,3,4... But, is your cart system its own application in IIS? Is it possible that there are other pages in your site that are using this same session variable name? Session variables are application-wide.
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message news:ut******************@amsnews05.chello.com... Hi there!
I have a website partly written in ASP in where a shoppingbasket is used. The products of the shoppingbasket are stored in the session-object. (We use IIS6 on Windows 2003). This was working well for a couple of days. But, after a while everytime I reload the shoppingbasket I see different products which I've never added. So it seems like I'm seeing the basket of another customer.
As it seemed IIS was 'sharing' sessions between different users I created this little testcode: --------------- if Session("P")="" then Session("P") = 1 else Session("P") = Session("P")+1 end if Response.Write "*" & Session("P") & "*" & Session.SessionID ---------------
It should return always an iterating numer (1 , 2 3, etc etc). But sometimes incosistent it jumps back to a previous number or starts at 1 and
after a while jumpe back to for example 365.
As I never experienced this behavior before I tried the same on
Windows 2000 (IIS5). Both the testscript and the shoppingbasket are working correctly. So It seems there is a bug in IIS6 or there there is something mis-configured. What am I doing wrong here?
Regards,
Ronald
Trust me. there are only 3 asp-scripts in the website.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:Od**************@TK2MSFTNGP09.phx.gbl... You verified this really fast. You know for a fact that throughout the
rest of the entire site, assuming it's all one application, that this session variable is not used anywhere else?
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message news:HW******************@amsnews05.chello.com... Within the test-script the sessionvariable is unique, so it is not possible that de sessionvariable is alterd by another script.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:ue**************@TK2MSFTNGP11.phx.gbl... You are correct that this should just give you 1,2,3,4... But, is
your cart system its own application in IIS? Is it possible that there are
other pages in your site that are using this same session variable name? Session variables are application-wide.
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message news:ut******************@amsnews05.chello.com... > Hi there! > > I have a website partly written in ASP in where a shoppingbasket is used. > The products of the shoppingbasket are stored in the session-object. (We > use IIS6 on Windows 2003). This was working well for a couple of
days. But, > after a while everytime I reload the shoppingbasket I see different products > which I've never added. So it seems like I'm seeing the basket of another > customer. > > As it seemed IIS was 'sharing' sessions between different users I created > this little testcode: > --------------- > if Session("P")="" then > Session("P") = 1 > else > Session("P") = Session("P")+1 > end if > Response.Write "*" & Session("P") & "*" & Session.SessionID > --------------- > > It should return always an iterating numer (1 , 2 3, etc etc). But sometimes > incosistent it jumps back to a previous number or starts at 1 and
after a > while jumpe back to for example 365. > > As I never experienced this behavior before I tried the same on Windows 2000 > (IIS5). Both the testscript and the shoppingbasket are working correctly. So > It seems there is a bug in IIS6 or there there is something mis-configured. > > What am I doing wrong here? > > Regards, > > Ronald > > > > > > > >
You're using Session("var") everywhere, as opposed to Application("var"),
correct?
When you reload this page, does the session ID ever change?
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message
news:x9******************@amsnews05.chello.com... Trust me. there are only 3 asp-scripts in the website.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:Od**************@TK2MSFTNGP09.phx.gbl... You verified this really fast. You know for a fact that throughout the rest of the entire site, assuming it's all one application, that this session variable is not used anywhere else?
Ray at work
"Ronald" <Ro****@iets.nl> wrote in message news:HW******************@amsnews05.chello.com... Within the test-script the sessionvariable is unique, so it is not possible that de sessionvariable is alterd by another script.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in message news:ue**************@TK2MSFTNGP11.phx.gbl... > You are correct that this should just give you 1,2,3,4... But, is your cart > system its own application in IIS? Is it possible that there are other > pages in your site that are using this same session variable name? Session > variables are application-wide. > > Ray at work > > "Ronald" <Ro****@iets.nl> wrote in message > news:ut******************@amsnews05.chello.com... > > Hi there! > > > > I have a website partly written in ASP in where a shoppingbasket
is used. > > The products of the shoppingbasket are stored in the
session-object. (We > > use IIS6 on Windows 2003). This was working well for a couple of days. > But, > > after a while everytime I reload the shoppingbasket I see
different > products > > which I've never added. So it seems like I'm seeing the basket of another > > customer. > > > > As it seemed IIS was 'sharing' sessions between different users I created > > this little testcode: > > --------------- > > if Session("P")="" then > > Session("P") = 1 > > else > > Session("P") = Session("P")+1 > > end if > > Response.Write "*" & Session("P") & "*" & Session.SessionID > > --------------- > > > > It should return always an iterating numer (1 , 2 3, etc etc). But > sometimes > > incosistent it jumps back to a previous number or starts at 1 and after a > > while jumpe back to for example 365. > > > > As I never experienced this behavior before I tried the same on Windows > 2000 > > (IIS5). Both the testscript and the shoppingbasket are working correctly. > So > > It seems there is a bug in IIS6 or there there is something > mis-configured. > > > > What am I doing wrong here? > > > > Regards, > > > > Ronald > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: P. Glassel |
last post by:
I'm having problems getting session timeouts to change
programmaticlaly under IIS6.0. This is unchanged code
that ran as expected under IIS5.0.
Anyone else run into this problem?
Thx.
|
by: swp |
last post by:
I have a site created using ASP, HTML, and JavaScript. I use frames
to manage a few things, and requires SSL to connect. The site is on a
secured network, not meant to be cross-browser...
|
by: unknown |
last post by:
Hi,
I am developing an online book store with shopping cart.
My shopping cart is represented as a Xml server control
and I am using an XSLT to render it at the client side.
I am using an...
|
by: Felipe Garcia |
last post by:
I have a distributed application that uses remoting, httpmodules.. that runs
fine under IIS6(using IIS5 isolation mode). But when we try to run the same
application under IIS6(using worker process...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |