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

Session variables lost on WWW site

- We have 2 aspx pages in a .NET project. The first sets
a session variable and has a button that when clicked
performs a 'redirect' to the second page which then reads
the session variable.

Problem: This always works fine on the localserver and
through the IDE. But when the application is put onto a
www website, the following occurs;
- If you browse to the site using the IP address, session
variables work fine
- If you browse to the site using the Web Site Domain Name
(ie http://www.tmcontrol.com) session variables are NOT
retrieved properly. Further investigation included
outputting the value of Session.SessionID. In the cases
where session variables were working (IP browsing) the
SessionID matches for both pages. In the case of failure
(name browsing), the SessionIDs are different indicating a
new session.

We tried to workaround this issue by setting SessionState
cookieless to "true" in web.config and while this seems to
correct the session problem, it causes problems with Form
data being returned from Verisign in later processing.

Are losing days and patience on this problem...any help
appreciated!!

Jul 19 '05 #1
1 2704
Are you using an ISP? Some ISP's run on load balanced servers and can have
problems with session variables. They may not work on a web farm. You can
build your own session state on the server and pass one ID from page to page
that can be used to retrieve session info stored on your db on the server.
As an alternative to passing the variable from page to page, you can store
the ID in a cookie.


"gfuller" <gr*********@L-3com.com> wrote in message
news:8e****************************@phx.gbl...
- We have 2 aspx pages in a .NET project. The first sets
a session variable and has a button that when clicked
performs a 'redirect' to the second page which then reads
the session variable.

Problem: This always works fine on the localserver and
through the IDE. But when the application is put onto a
www website, the following occurs;
- If you browse to the site using the IP address, session
variables work fine
- If you browse to the site using the Web Site Domain Name
(ie http://www.tmcontrol.com) session variables are NOT
retrieved properly. Further investigation included
outputting the value of Session.SessionID. In the cases
where session variables were working (IP browsing) the
SessionID matches for both pages. In the case of failure
(name browsing), the SessionIDs are different indicating a
new session.

We tried to workaround this issue by setting SessionState
cookieless to "true" in web.config and while this seems to
correct the session problem, it causes problems with Form
data being returned from Verisign in later processing.

Are losing days and patience on this problem...any help
appreciated!!

Jul 19 '05 #2

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

Similar topics

9
by: Xizor | last post by:
Let's say I run a server. I have two people using the server. Bill and Joe. Bill is at address.com/bill and Joe is at address.com/joe. Let's say Joe and Bill are both using PHP with sessions on...
2
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've...
12
by: frank | last post by:
Please help.....! I have built a site that works/worked absolutely fine on my test server. When I transferred it to a remote web host (the intended permanent home of the site) something very...
2
by: Alex | last post by:
Thank you in advance. My ASP page 1 redirect user to third party's website, after the process at third party is finished, in 3rd party's page, there is one link to route user back to my...
1
by: Eliyahu Goldin | last post by:
When I run my ASP.NET application first time after deployment, it runs OK. On the second run, when one of my web forms tries to read session variables set in another form, it finds them empty....
5
by: rich00 | last post by:
i am developing an asp.net web based application using javascript as the server side scripting language. The application makes constant use of an access database and session variables. in a random...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
4
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some...
2
by: maxkumar | last post by:
Hi, I am running a ASP.NET 1.1 site on Win Server 2003 with IIS 6.0. The website has been running for about 1.5 years now. In the past, we used to have random cases of session variables getting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.