473,387 Members | 1,440 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,387 software developers and data experts.

Session variables and Databind

UJ
I've noticed some odd behavior so I thought I'd ask the question - when you
set a session variable, do you need to do a databind after that? It almost
seems like you need to.

J.
Nov 19 '05 #1
4 1517
Hi UJ:

No - no need to do databinding. Are you losing session variables? What
is happening?

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

On Wed, 18 May 2005 10:34:23 -0400, "UJ" <fr**@nowhere.com> wrote:
I've noticed some odd behavior so I thought I'd ask the question - when you
set a session variable, do you need to do a databind after that? It almost
seems like you need to.

J.


Nov 19 '05 #2
Hi UJ:

I have this funny behaviour, somehow, I lost the session variables as well.
I know it have nothing to do with timeout or session state setting. I hear
it has something to do with the firewall and security setting.

Egghead

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:05********************************@4ax.com...
Hi UJ:

No - no need to do databinding. Are you losing session variables? What
is happening?

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

On Wed, 18 May 2005 10:34:23 -0400, "UJ" <fr**@nowhere.com> wrote:
I've noticed some odd behavior so I thought I'd ask the question - when youset a session variable, do you need to do a databind after that? It almostseems like you need to.

J.

Nov 19 '05 #3
As a guess from your description - Proxy/cache servers and some firewalls
have a nasty tendency to consume your NTLM credentials, thus leaving nothing
to pass between client and server, thus your session is lost as your system
cant maintain the session. Turn on basic and NTLM for your site and see if
you manage to maintain your session to prove if its this.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Egghead" <ro**************@shaw.ca> wrote in message
news:ew**************@tk2msftngp13.phx.gbl...
Hi UJ:

I have this funny behaviour, somehow, I lost the session variables as
well.
I know it have nothing to do with timeout or session state setting. I hear
it has something to do with the firewall and security setting.

Egghead

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:05********************************@4ax.com...
Hi UJ:

No - no need to do databinding. Are you losing session variables? What
is happening?

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

On Wed, 18 May 2005 10:34:23 -0400, "UJ" <fr**@nowhere.com> wrote:
>I've noticed some odd behavior so I thought I'd ask the question - when you >set a session variable, do you need to do a databind after that? It almost >seems like you need to.
>
>J.
>


Nov 19 '05 #4
Hi Egghead:

Are you using inproc session state? Is there anychance the ASP.NET
worker process is restarting? That will drop your session state.

You might try to watch the IE headers [1] and see if you are getting a
new Set-Cookie for ASP.NET Session state in the middle of you browisng
session.

[1] http://www.blunck.info/iehttpheaders.html

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 18 May 2005 09:08:06 -0600, "Egghead"
<ro**************@shaw.ca> wrote:
Hi UJ:

I have this funny behaviour, somehow, I lost the session variables as well.
I know it have nothing to do with timeout or session state setting. I hear
it has something to do with the firewall and security setting.

Egghead

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:05********************************@4ax.com.. .
Hi UJ:

No - no need to do databinding. Are you losing session variables? What
is happening?

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

On Wed, 18 May 2005 10:34:23 -0400, "UJ" <fr**@nowhere.com> wrote:
>I've noticed some odd behavior so I thought I'd ask the question - whenyou >set a session variable, do you need to do a databind after that? Italmost >seems like you need to.
>
>J.
>


Nov 19 '05 #5

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

Similar topics

4
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...
3
by: coleenholley | last post by:
I need to know how to get a specific row/cell of data to post as a session variable - like I would with an ASP.Net table: Dim ld_sum_tot_cty_tax As Doubl Session("wa_tot_gal") =...
2
by: Colin Basterfield | last post by:
Hi, I am confused... I have the following code in my Page_Load method private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here
5
by: Mark Hanson | last post by:
I would like to access code behind .aspx.vb protected variables from the aspx web page like this <%# _ProtectedVariable %>. The only way I can get the value is if I do Me.DataBind on each...
3
by: j-in-uk | last post by:
Hi, It seems as though Profiles have replaced session variables in visual studio 2005. The Profile needs to be defined in the web.config : <anonymousIdentification enabled="true" /> <profile...
2
by: Ned Balzer | last post by:
Hi, Apologies if this is a newbie question, I haven't found the answer in any faqs. I have an asp.net 2.0 page that sets session variables and then redirects to another page. For the page...
1
by: Roger | last post by:
Hi all On a page I am using a repeater which is linked to an ObjectDataSource (same page): <asp:Repeater ID="VideoListNewestRepeater" runat="server" DataSourceID="VideoListNewestDataSource">...
4
by: Vince13 via DotNetMonster.com | last post by:
I am trying to set up a page where the user can change data, and then click cancel and the data will not be saved. Currently, I am saving the data in a Session variable that is an array of a class...
0
by: SLG31 | last post by:
I'm designing like a shopping cart and have a product list which is an xml file consisting of products and prices which is loaded into a dataset then bound to a datagrid There are buttons next to...
0
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,...
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:
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...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.