473,756 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session_start problems among other things?

I am involved on a web application that is using a third party set of
APIs for remote database access (middleware). I've been brought in
because of my background in programming, thus I'm new to this web
development process so forgive my ignorance.

The third party has a shopping cart which must be saved in the
session.

When navigating from page to page we experience some odd behavior on
the hosted server that we do not see on our internal development
server. The hosted server is a Windows 2003 Server while our internal
server was a Windows 2000 Server. I implemented a Global property to
save and restore the cart to the session so as to concentrate the
access to the shopping cart to a central location. This project
started out using plain ASP under the (patently false) assumption that
ASP.NET APIs could be called from ASP pages but the development was
far enough along that a total rewrite was not done of the existing ASP
pages. Thus, only those pages that use the API are ASP.NET pages and
the rest are ASP pages. Even more troubling to me (due to my lack of
experience in this) is that the web guy uses intermediate ASP pages
sometimes to pass session state information to the ASP side. Things
like how many items are in the cart, the total $ in the cart, etc.
This is not to say that ever page transition goes through an ASP page,
but whenever a page that could change a relevant session variable is
navigated away from it typically is done by way of an ASP page using a
request string.

One odd behavior that is exhibited in this site. A page will be built
that contains items available to be placed in the shopping cart. The
links are created with a request string that contains the ID of the
item. When hovering over the link I can see the destination URL in
the status line of the web browser, i.e.

http://test.mywebpage.com/details.aspx?ID=62

But, when the link is clicked, the destination web page does not
always get the request string. When I view the source code in my web
browser for the intial page (the one that displays the list of items)
I can see the correctly formed URL as part of the href= so I know it's
there. Also, we are frequently losing the cart out of the session for
no apparent reason.

In an attempt to trace some of these problems I wrote a method that
will log a string to an auxiliary Access database table we are using
on our system. The information logged is the date/time, the string
passed to the method, and the value of the
HttpContext.Cur rent.Session.Se ssionID property. Then, I stuck a line
in the Global.Session_ Start subroutine that logs a string to indicate
that Session_Start was executed. I was quite surprised to discover
that Session_Start is executed almost every time that an ASP page is
navigated to. As further information, the session state is InProc and
cookieless is false. I've tried to use a state server but have
problems with an object from the third party not being serializeable.
Said object isn't being saved in the session (at least not by our
code) and I'm trying to track down where it is coming from. I am
going to try changing the cookieless value in web.config to true to
see what effect that has but I'm afraid it will generate other
problems because the web guy uses Response.Redire ct() a lot in the
code and doesn't that lose the cookie information embedded in the URL?

I know this is a long winded explanation but the boss has said if
these problems are not resolved by the end of the week he's gonna have
to refund the client's money and may lay off several people (hopefully
not me but who knows). Any thoughts on things to try? I've tried
what I thought were the obvious things but I feel like a fish out of
water sometimes with this stuff right now.

Thanks for any assistance.

Peter R. Vermilye
Sr. Systems Engineer
Desoto Systems, Inc.
Memphis, TN

pv*******@NO.SP AM.desotosystem s.com

Nov 19 '05 #1
0 1269

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

Similar topics

1
1693
by: Ray Torres | last post by:
I get a warning and cannot start a session. I understand from reading through the documentation and other posts that session_start must occur in the php script before any HTML tags or output to the browser. In my script, the session_name and session_start are the first two lines in thescript; so I can't see what the problem could be. I have used sessions on other pages in a similar fashion (in the same web project, on the same...
3
2212
by: Trogdor | last post by:
I set up a server on an AMD 650 machine running gentoo linux. I installed Apachie 2, MySQL 4.1 and PHP 4.3.11 I use another computer on my local net (192.168.0.x) to access the server as a client. MySQL works perfectly. I have created and queried databases with no problem. Apachie 2 appears to work with no problem. I can call up web pages in the expected maner.
6
2481
by: Jeff Smythe | last post by:
Why does Session_Start in Global.asax fire for every page opened during a session of an ASP.NET application? Am I wrong to expect that it would fire only when the first page (i.e., any page in the app that is opened before any other page during the session) is opened? Thanks.
5
2175
by: Niklas Uhlin | last post by:
Someone please explain why Session_Start fires multiple times / retains SessionID values between sessions, when you open an ASP.NET page from MS Word. For details of the problem, see below: 1. Create a new C# ASP.NET web application named "demo" and modify Session_Start in Global.asax.cs as follows: protected void Session_Start(Object sender, EventArgs e) { Response.Write("Session_Start event fired at "+
0
1249
by: Jason Lehman | last post by:
When testing on my local machine, the session_start fires fine. I try storing a value to my database, creating a timestamped text file, and writing a line of text to a general log file. All of these work. When I transfer my site to my webhost, all of these no longer function within the session_start. All of these functions work correctly when triggered by button clicks or page redirects, the session_start simply won't fire. I have 3...
19
7927
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache limiter - headers already sent in /home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandStartSession.php on line 14
2
1847
by: IchBin | last post by:
I am getting the error message below when ever I try to start my script on two different servers. I am not getting any errors off of my PC. I have looked around and found the answer a simple one. I can not stop the error in my script. The session_start() is the first thing that happens before any Headers are created. Any one have any suggestions. Include the start of the code that uses the session var. Warning: session_start(): Cannot...
1
1083
by: =?Utf-8?B?Q2hpV2hpdGVTb3g=?= | last post by:
Hi All, how do u declare a variable as a Collection.ArrayList in a Session_start at the Global.asax file? im having some problems in declaring the arraylist at session_start in global.asx, so how do u exactly write it? vb doesnt recognize it if i write somethin like: ------------------------------------
14
9325
by: Sergei Shelukhin | last post by:
Hi. I have a session started in php and two browser windows (IE)/tabs (FF) open. In one window, I execute a very slow report, immediately after that, I execute a fast simple page in another. I have set up a timer that records time into global variable at the start of the request, it outputs three time values in seconds - right before session_start, right after session_start, and at the very end of the request. here's what it shows
0
9456
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9843
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.