473,699 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session Variables in IIS

I am having some trouble with seesion variables.

I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.

They say they can't guarantee sessions and recomend another method of
storing persistant data.

I questioned them on why, only on their servers, my sessions are being
reset as often as they are. They said it must be a coding issue.
However, I have not had trouble before, with same applications on
different or local servers.

So my question is this, what can reset session data? Just a reset of
iis?

Sep 22 '05 #1
6 2234
Brian Brinks wrote on 22 sep 2005 in
microsoft.publi c.inetserver.as p.general:
I am having some trouble with seesion variables.

I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.

They say they can't guarantee sessions and recomend another method of
storing persistant data.

I questioned them on why, only on their servers, my sessions are being
reset as often as they are. They said it must be a coding issue.
However, I have not had trouble before, with same applications on
different or local servers.

So my question is this, what can reset session data? Just a reset of
iis?


Please show us the smallest code where this phenomenon happens.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Sep 22 '05 #2
Here is a code sample - It is basically very simple - just gettin some
data from a db and displaying it in a dropdown:

Function displayCompanie s()
dim arrCompanies,i
arrCompanies = DB_ExecuteSQLRe turnArray("SELE CT * FROM t_company order
by t_company.compa ny")
if ISarray(arrComp anies) = TRUE then
%><div align=center>
<form name="companyid d" method="post"
action="home.as p?action=compan ydata">
<select name="select"
onchange="windo w.open(this.opt ions[this.selectedIn dex].value,'_top')" >
<option>Compani es</option>
<option>-----------------------</option>
<%
for i=0 to ubound(arrCompa nies,2)
%><option
value="home.asp ?action=company data&cid=<%=arr Companies(0,i)% >"><%=arrCompan ies(1,i)%></option><%
next
%>
</select><br>
<br>
<!--<input type="submit" name="Submit" value="Submit">-->
</form></div><%
end if
end function

Sep 22 '05 #3

"Brian Brinks" <re*****@zgn.ne t> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I am having some trouble with seesion variables.

I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.
That's true. If an application is reset or if you are using a web farm you
can't garantuee your session.
Happily, there are good products such as below to solve this.
ISP Session is one of the best compatible with asp and asp.net (version 5.2
is being built to allow even better integration with .NET)

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

They say they can't guarantee sessions and recomend another method of
storing persistant data.

I questioned them on why, only on their servers, my sessions are being
reset as often as they are. They said it must be a coding issue.
However, I have not had trouble before, with same applications on
different or local servers.

So my question is this, what can reset session data? Just a reset of
iis?


Sep 22 '05 #4
Brian Brinks wrote on 22 sep 2005 in
microsoft.publi c.inetserver.as p.general:
Here is a code sample - It is basically very simple - just gettin some
data from a db and displaying it in a dropdown:

Function displayCompanie s()
dim arrCompanies,i
arrCompanies = DB_ExecuteSQLRe turnArray("SELE CT * FROM t_company
order
by t_company.compa ny")
if ISarray(arrComp anies) = TRUE then
%><div align=center>
<form name="companyid d" method="post"
action="home.as p?action=compan ydata">
<select name="select"
onchange="windo w.open(this.opt ions[this.selectedIn dex].value,'_top')" >
<option>Compani es</option>
<option>-----------------------</option>
<%
for i=0 to ubound(arrCompa nies,2)
%><option
value="home.asp ?action=company data&cid=<%=arr Companies(0,i)% >"><%=arrCo
mpanies(1,i)%></option><%
next
%>
</select><br>
<br>
<!--<input type="submit" name="Submit" value="Submit">-->
</form></div><%
end if
end function


You are not quoting your question, but I suppose you lost your session
variable?

I do not see a session variable in your code.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Sep 22 '05 #5
Hi Brian,
Did somebody configure IIS on Win2003 to utilize a web garden? If so, this
is logical. You can't share sessions among a wegb garden without jumping to
external tools since MS does not support sessions for that purpose.

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

"Brian Brinks" <re*****@zgn.ne t> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I am having some trouble with seesion variables.

I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.

They say they can't guarantee sessions and recomend another method of
storing persistant data.

I questioned them on why, only on their servers, my sessions are being
reset as often as they are. They said it must be a coding issue.
However, I have not had trouble before, with same applications on
different or local servers.

So my question is this, what can reset session data? Just a reset of
iis?


Sep 23 '05 #6
Hi,

I have one small question on Session. How do I know from which link my
webpage is clicked (like is that from Google ot from with in the same main
page).

I know about Request.ServerV ariables("HTTP_ REFERER"). So I used this in
"global.asa " file in "Session_OnStar t" event like this:

Sub Session_OnStart
Session("Referr alURL") = Request.ServerV ariables("HTTP_ REFERER")
End Sub

Sub Session_OnEnd
Session("Referr alURL") = ""
End Sub

So that I can use the session variable any where in my website, because the
HTTP_REFERER will give the URL of the last webpage.

But this seems to not working.

Thanks
PN

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalid> wrote in
message news:Oj******** ******@TK2MSFTN GP14.phx.gbl...

"Brian Brinks" <re*****@zgn.ne t> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
I am having some trouble with seesion variables.

I have just moved hosting companies to Brinkster.com but have been
having problems with my applications holding session.
That's true. If an application is reset or if you are using a web farm you
can't garantuee your session.
Happily, there are good products such as below to solve this.
ISP Session is one of the best compatible with asp and asp.net (version

5.2 is being built to allow even better integration with .NET)

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

They say they can't guarantee sessions and recomend another method of
storing persistant data.

I questioned them on why, only on their servers, my sessions are being
reset as often as they are. They said it must be a coding issue.
However, I have not had trouble before, with same applications on
different or local servers.

So my question is this, what can reset session data? Just a reset of
iis?

Sep 23 '05 #7

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

Similar topics

6
2386
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 email from (possibly) three seperate forms. the following code is the end of a routine which stashes data from the first form off to session variables and then redirects itself to the proper form / procedure depending upon the state of two...
6
656
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, but I can't get the value is stored in it. How can I do that? Thanks a lot!
4
5586
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 immediate window will show the values in Session after the relevant lines that set the variables in the Page_Unload event. However, on postback, these variables are no longer in Session. All Session variables that were set previous to that particular...
31
6994
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 using Session variables for three years now and i'm entering a project with my new boss who has never quite come around that session variables are ok. What's the concensus here. How can i convince him that they are ok in ASP.NET. OR
10
3506
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 more time I have on a session? If I do a refresh, does reset the session clock? Do you have have to go to another page to reset the session timeout or will a postback also do it? This is important as we have a few pages that a user
3
2908
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 any experience on how to keep track of session value. Any help it's appreciated. Thanks Alan
3
2673
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 control. In its inactive state, only a single button appears. If the user clicks on this button, the control becomes active( the rest of the control's functionality becomes visible), and all other instances of this user control on the page should...
18
3434
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 File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts the usefullness of using session state management. I probably missed it somewhere - can...
26
3604
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 opens a new IE window with Ctrl-N or File-New-Window, BOTH WINDOWS SHARE THE SAME SESSION VARIABLES. This cannot be prevented.
12
3829
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 email link gets created with an encoded query string. i.e http://www.yahoo.ca?#$@%@&#%#$@&^@%# which translates into http://www.yahoo.ca?userID=54&LocationID=Denver. Now when the user get's this email and clicks on the link I have a
0
8685
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
8613
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8880
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
7745
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
6532
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...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
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.