473,326 Members | 2,128 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,326 software developers and data experts.

Session ID is changing

I have written a shopping cart using ASP .NET (VB). It has been running
quite successfully on a site for about a year or so. I use the SessionID to
hold information on the shopping cart.

I have copy / pasted the code into a new site. Everything is working,
EXCEPT for the shopping cart holding the SessionID. I have watched the
variable, and each time I hit the 'Update' button in a datagrid, the session
ID changes. That is a HUGE problem, and I am about to throw a computer out a
window.

The session ID is supposed to stay the same!!! Where do I look? The sites
are on the same server. IIS 6.0 W2K3 server and updated patches.

I was supposed to have this done this weekend, and would have, with plenty
of time to watch football, if the Session ID would work as intended (or at
least how it is working on the other site)

HELP!

Thanks in advance,
--
Thanks,
Brad Simon
Nov 18 '05 #1
5 1690
Hi Brad:

Anychance the browser is not accepting cookies? For IE, do you have a
privacy warning icon in the lower right of the status bar? It may be
blocking cookies which are needed to wire up the correct session.

--
Scott
http://www.OdeToCode.com/

On Sun, 10 Oct 2004 14:47:01 -0700, "Brad Simon"
<bs****@simondeveloping.com> wrote:
I have written a shopping cart using ASP .NET (VB). It has been running
quite successfully on a site for about a year or so. I use the SessionID to
hold information on the shopping cart.

I have copy / pasted the code into a new site. Everything is working,
EXCEPT for the shopping cart holding the SessionID. I have watched the
variable, and each time I hit the 'Update' button in a datagrid, the session
ID changes. That is a HUGE problem, and I am about to throw a computer out a
window.

The session ID is supposed to stay the same!!! Where do I look? The sites
are on the same server. IIS 6.0 W2K3 server and updated patches.

I was supposed to have this done this weekend, and would have, with plenty
of time to watch football, if the Session ID would work as intended (or at
least how it is working on the other site)

HELP!

Thanks in advance,


Nov 18 '05 #2
Hi Brad,
Did Scott advice did work:)
Guess your IE isn't accepting cookies so no correct Seesions.
Web Servers gives out SessionID so guess it whould work..
GDLUCK!
"Scott Allen" wrote:
Hi Brad:

Anychance the browser is not accepting cookies? For IE, do you have a
privacy warning icon in the lower right of the status bar? It may be
blocking cookies which are needed to wire up the correct session.

--
Scott
http://www.OdeToCode.com/

On Sun, 10 Oct 2004 14:47:01 -0700, "Brad Simon"
<bs****@simondeveloping.com> wrote:
I have written a shopping cart using ASP .NET (VB). It has been running
quite successfully on a site for about a year or so. I use the SessionID to
hold information on the shopping cart.

I have copy / pasted the code into a new site. Everything is working,
EXCEPT for the shopping cart holding the SessionID. I have watched the
variable, and each time I hit the 'Update' button in a datagrid, the session
ID changes. That is a HUGE problem, and I am about to throw a computer out a
window.

The session ID is supposed to stay the same!!! Where do I look? The sites
are on the same server. IIS 6.0 W2K3 server and updated patches.

I was supposed to have this done this weekend, and would have, with plenty
of time to watch football, if the Session ID would work as intended (or at
least how it is working on the other site)

HELP!

Thanks in advance,


Nov 18 '05 #3
Browser is accepting cookies for that site. Thanks for having me check!

I do have the cookieless session state set to false. I had tried setting it
to true, with the same results.

"Patrick.O.Ige" wrote:
Hi Brad,
Did Scott advice did work:)
Guess your IE isn't accepting cookies so no correct Seesions.
Web Servers gives out SessionID so guess it whould work..
GDLUCK!
"Scott Allen" wrote:
Hi Brad:

Anychance the browser is not accepting cookies? For IE, do you have a
privacy warning icon in the lower right of the status bar? It may be
blocking cookies which are needed to wire up the correct session.

--
Scott
http://www.OdeToCode.com/

On Sun, 10 Oct 2004 14:47:01 -0700, "Brad Simon"
<bs****@simondeveloping.com> wrote:
I have written a shopping cart using ASP .NET (VB). It has been running
quite successfully on a site for about a year or so. I use the SessionID to
hold information on the shopping cart.

I have copy / pasted the code into a new site. Everything is working,
EXCEPT for the shopping cart holding the SessionID. I have watched the
variable, and each time I hit the 'Update' button in a datagrid, the session
ID changes. That is a HUGE problem, and I am about to throw a computer out a
window.

The session ID is supposed to stay the same!!! Where do I look? The sites
are on the same server. IIS 6.0 W2K3 server and updated patches.

I was supposed to have this done this weekend, and would have, with plenty
of time to watch football, if the Session ID would work as intended (or at
least how it is working on the other site)

HELP!

Thanks in advance,


Nov 18 '05 #4
Hi Brad:

Just trying to think what other problems could be happening. Does the
code contain any redirects? If there is a redirect at the wrong time
it could cause a problem, see:
http://blogs.msdn.com/bleroy/archive...03/207486.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 10 Oct 2004 20:31:01 -0700, "Brad Simon"
<bs****@simondeveloping.com> wrote:
Browser is accepting cookies for that site. Thanks for having me check!

I do have the cookieless session state set to false. I had tried setting it
to true, with the same results.

"Patrick.O.Ige" wrote:


Nov 18 '05 #5
No redirect. I read that article, and I don't see anything else that might
be an issue.

"Scott Allen" wrote:
Hi Brad:

Just trying to think what other problems could be happening. Does the
code contain any redirects? If there is a redirect at the wrong time
it could cause a problem, see:
http://blogs.msdn.com/bleroy/archive...03/207486.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 10 Oct 2004 20:31:01 -0700, "Brad Simon"
<bs****@simondeveloping.com> wrote:
Browser is accepting cookies for that site. Thanks for having me check!

I do have the cookieless session state set to false. I had tried setting it
to true, with the same results.

"Patrick.O.Ige" wrote:


Nov 18 '05 #6

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

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
3
by: M Wells | last post by:
Hi All, Just wondering how you go about changing the value of a session cookie via javascript? I have a PHP page that sets a session cookie when it first loads. I'd like to be able to change...
0
by: karl | last post by:
I have several .net applications running on a webserver. I recently installed the patches to the system to stop the worm virus that was going around last week. Since that time I ran into a...
7
by: TS | last post by:
I was under the impression that when you get a reference to an object, then update that reference, the object gets updated. Apparently this isn't the case using session? code (note at this point...
3
by: karl | last post by:
I have several .net applications running on a webserver. I recently installed the patches to the system to stop the worm virus that was going around last week. Since that time I ran into a...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
2
by: Greg Wickham | last post by:
Hi All, Earlier this year there was a discussion between Tom and Ezra regarding extending 'set session authorization' to facilitate changing the identity of a connection. A synopsis of the...
5
by: Ed | last post by:
I have some questions in regards to Session variables and IIS Recycling: 1. Does the IIS setting 'Shutdown worker process after being idle' affect an application's session variables? Or is IIS...
3
by: samik | last post by:
I have working on WinXP + IIS 5.0 + .NET 1.1 Whenever i open a page with the url starting as http://localhost/<page addressor http://127.0.0.1/<page addressthe application to hold session...
1
Ajm113
by: Ajm113 | last post by:
I find it odd all my scripts doesn't change the logged in person's name on any other page, but my threads page. I have no idea why! I looked over the script and saw nothing changing the session...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.