Hi all
I've got a .Net site that has 3 session variables...the variables should persist over 23 unique insert pages, 23 update, and 23 "view total" pages...
And the problem is once I get past one page, the session vars disappear
The logic is
1. logon = set a session var to the email addres
2. redirect to a "main page" that uses the email sess var in a query to get the UserID in the database
This is successful because I have the user id sess var displayed on the page
now, if I do other stuff, like go to a different insert or update page and then navigate back to my main page, the session var is gone
and from the main page, there is an "update my info" that leads to a page that has a query that should be using the UserID session var, and I can see the session var on the page, but then when I go to the update page....it doesn't catch the session var in the query
I'm at wits end...I've been up 2 days (I know many of you know this feeling) help
==============
The session vars are set on the page load event just like the DMX tutorial says it should be..
Does a .Net form actually have to post back to itself to set the variable
Does it work to set the sess var on page load then do a response.redirect to another page? Shouldn't the variable still persist
HELP!!!! 1 1338
Does your browser accept cookies from the site?
On Fri, 23 Jan 2004 06:31:07 -0800, "samtran331"
<sa*****@ccpteamNOSPAM.com> wrote: Hi all,
I've got a .Net site that has 3 session variables...the variables should persist over 23 unique insert pages, 23 update, and 23 "view total" pages.... And the problem is once I get past one page, the session vars disappear.
The logic is: 1. logon = set a session var to the email address 2. redirect to a "main page" that uses the email sess var in a query to get the UserID in the database. This is successful because I have the user id sess var displayed on the page.
now, if I do other stuff, like go to a different insert or update page and then navigate back to my main page, the session var is gone!
and from the main page, there is an "update my info" that leads to a page that has a query that should be using the UserID session var, and I can see the session var on the page, but then when I go to the update page....it doesn't catch the session var in the query!
I'm at wits end...I've been up 2 days (I know many of you know this feeling) help!
=============== The session vars are set on the page load event just like the DMX tutorial says it should be... Does a .Net form actually have to post back to itself to set the variable? Does it work to set the sess var on page load then do a response.redirect to another page? Shouldn't the variable still persist?
HELP!!!!
--
Scott http://www.OdeToCode.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Al Jones |
last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate
group would you point me toward one that is.
Basically, I seem to be losing session data part way though preparing an...
|
by: Lina Manjarres |
last post by:
Hello,
I have a session variable in a login page. Then I go to a form page where I
uses the ProfileID and the UserID. Then I go to a result page where I would
like to use the UserID as a filter,...
|
by: PJ |
last post by:
A particular page seems to be having issues with correctly setting Session
variables. I am setting a couple of session variables on the Page_Unload
event. While stepping through code, the...
|
by: Harry Simpson |
last post by:
I've come from the old ASP camp where session variables were not used. When
i started using ASP.NET in 2001, I started using them again because it was
ok from what I'd read.
I've been merrily...
|
by: tshad |
last post by:
I have been using the default session state (InProc) and have found that I
have been loosing my information after a period of time (normally 20
minutes).
Is there anyway to find out how much...
|
by: Alan Wang |
last post by:
Hi there,
Once my application gets complicated and complicated. I found it's really
hard to keep track of Session value I am using in my asp.net application. I
am just wondering if anyone have...
|
by: Phillip N Rounds |
last post by:
I'm writing a user control which has two states: Active & InActive. I
additionally am required that there to be only one active control per page,
and all logic has to be contained within the...
|
by: BillE |
last post by:
When a user opens a new IE browser window using File-New-Window the
integrity of an application which relies on session state is COMPLETELY
undermined. Anyone who overlooks the fact that...
|
by: BillE |
last post by:
Some ASP.NET applications use Session Variables extensively to maintain
state.
These should be re-written to use viewstate, hidden fields, querystring,
etc. instead.
This is because if a user...
|
by: MrHelpMe |
last post by:
Hello again all,
I've finished my whole application and now I don't like the whole
session variables that I am using. I have a form, user fills in info
clicks submit and using CDOSYSMail an...
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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...
|
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...
| |