473,396 Members | 2,093 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 work from Page1 to Page2 / lost from Page2 to Page3


Hello all

I have a small webform application with three WebForms that use session
variables to maintain session data (user name)

When I transfer to page 2 from page1 session state is transferred OK, but is
lost when I use a command button to transfer from page2 to page3.

It seem to have something to do with a timeout of some sort because if I
transfer from page2 loadEvent directly to page3,
the session variable is maintained.

I have disabled my anti virus software completely.

I have checked in my cookies folder and the cookie is just not being created
(IE is set to prompt before accepting cookies)

I am using VS.NET 2003 and ASP.NET 1.1

Any suggestions / tip would be greatly appreciated

my web config is as follows

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>
Nov 19 '05 #1
2 1390
Forgot to mention : my dev machine runs XP-PRO

"P. Prosper" <none@none> wrote in message
news:eI*************@TK2MSFTNGP12.phx.gbl...

Hello all

I have a small webform application with three WebForms that use session
variables to maintain session data (user name)

When I transfer to page 2 from page1 session state is transferred OK, but is lost when I use a command button to transfer from page2 to page3.

It seem to have something to do with a timeout of some sort because if I
transfer from page2 loadEvent directly to page3,
the session variable is maintained.

I have disabled my anti virus software completely.

I have checked in my cookies folder and the cookie is just not being created (IE is set to prompt before accepting cookies)

I am using VS.NET 2003 and ASP.NET 1.1

Any suggestions / tip would be greatly appreciated

my web config is as follows

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>

Nov 19 '05 #2
I've just solved a very similar problem to this one - have you checked what
URL you are using to access the front page of the site? Is it possible that
when you get as far as page 3, the application starts using a different URL.

My problem was that the user was using an IP address stored in his
Favourties list to connect to page 1 (eg http://123.4.5.6/login). He logged
in, and was redirected to page 2 via a relative URL (http://123.4.5.6/home).
The user clicks on a hyperlink to go to page 3, and they are redirected to an
absolute URL that uses a domain alias (eg http://www.myapp.com/search) - but
IE thinks its being redirected to an entirely different website, so it drops
the Session ID it should have sent to the server to identify itself. The user
then gets sent back to page 1, this time with the domain alias
(http://www.myapp.com/login) - and so this time, the login works as expected.

See if that works for you.

Paul
"P. Prosper" wrote:

Hello all

I have a small webform application with three WebForms that use session
variables to maintain session data (user name)

When I transfer to page 2 from page1 session state is transferred OK, but is
lost when I use a command button to transfer from page2 to page3.

It seem to have something to do with a timeout of some sort because if I
transfer from page2 loadEvent directly to page3,
the session variable is maintained.

I have disabled my anti virus software completely.

I have checked in my cookies folder and the cookie is just not being created
(IE is set to prompt before accepting cookies)

I am using VS.NET 2003 and ASP.NET 1.1

Any suggestions / tip would be greatly appreciated

my web config is as follows

<sessionState

mode="InProc"

stateConnectionString="tcpip=127.0.0.1:42424"

sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"

cookieless="false"

timeout="20"

/>


Nov 19 '05 #3

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

Similar topics

3
by: Ralph Freshour | last post by:
I was reading about PHP variable scoping - it doesn't seem to support carrying any variables from one web page to another - how is this usually done? I have a lot of php variables created on my...
3
by: Nick Young | last post by:
Hi All, I am trying to get to grips with PHP Sessions. I have a very simple logon script that works fine so long as the client allows cookies. However when they have cookes turned off (and I...
4
by: bateman | last post by:
Hi, I have a rather puzzling problem, have asked the ASP experts at work with no joy and its driving me mad! I'll explain the steps in more detail below but the general problem is I am manually...
2
by: acko bogicevic | last post by:
Hi I have a session variable "sUser" On Page_Load on Page1 i give a value for sUser like this Session("sUser")="User1" When i go to Page2 from Page1 this code works fine:...
4
by: nicholas | last post by:
I'm using context to transfer variables from 1 page to another. But, with more than 2 pages it fails. Ex: page1.aspx: Context.Items.Add("customername", customername.text)...
0
by: Aarchaic | last post by:
Hello i have problem my session variables seem to disapear as i go along i've created this code to ilustrate whats happening First off i just post 3 detials like a name a age and a favourite...
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Recently, I just found out that our program behaves differently from before. in our asp, in order to prevent data disppearing problem in form fields,we use session variable to display...
1
by: Chris | last post by:
Hi, I have a problem with sitemap combined with role. I posted in the professional group but i reformulated here and made the things simplier: I tried a lot of things, read a lot of stuff, but...
4
by: John H | last post by:
Hi, I'm busy fiddling with sessions under PHP5, and very quickly learned what I would have found out even sooner in the PHP manual - declaring your session variable on page1.php makes it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...

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.