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

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 2218
Brian Brinks wrote on 22 sep 2005 in
microsoft.public.inetserver.asp.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 displayCompanies()
dim arrCompanies,i
arrCompanies = DB_ExecuteSQLReturnArray("SELECT * FROM t_company order
by t_company.company")
if ISarray(arrCompanies) = TRUE then
%><div align=center>
<form name="companyidd" method="post"
action="home.asp?action=companydata">
<select name="select"
onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option>Companies</option>
<option>-----------------------</option>
<%
for i=0 to ubound(arrCompanies,2)
%><option
value="home.asp?action=companydata&cid=<%=arrCompa nies(0,i)%>"><%=arrCompanies(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.net> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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.public.inetserver.asp.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 displayCompanies()
dim arrCompanies,i
arrCompanies = DB_ExecuteSQLReturnArray("SELECT * FROM t_company
order
by t_company.company")
if ISarray(arrCompanies) = TRUE then
%><div align=center>
<form name="companyidd" method="post"
action="home.asp?action=companydata">
<select name="select"
onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<option>Companies</option>
<option>-----------------------</option>
<%
for i=0 to ubound(arrCompanies,2)
%><option
value="home.asp?action=companydata&cid=<%=arrCompa nies(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.net> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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.ServerVariables("HTTP_REFERER"). So I used this in
"global.asa" file in "Session_OnStart" event like this:

Sub Session_OnStart
Session("ReferralURL") = Request.ServerVariables("HTTP_REFERER")
End Sub

Sub Session_OnEnd
Session("ReferralURL") = ""
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**************@TK2MSFTNGP14.phx.gbl...

"Brian Brinks" <re*****@zgn.net> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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
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...
6
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,...
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...
31
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...
10
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...
3
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...
3
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...
18
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...
26
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...
12
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.