473,748 Members | 6,161 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 2236
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
2389
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
5592
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
6999
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
3512
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
2912
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
2679
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
3444
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
3614
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
3841
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
8828
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
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
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...
1
6795
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...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.