473,326 Members | 2,113 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,326 software developers and data experts.

session state dies

we've just set up a subdomain, 'demos' for one of our projects that normally
works fine. on the login page, if the user enters the correct username/pw,
we write session info and then response.redirect to the home page. this
works for on the normal site, but session state info is dying on the demo
subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redirect uses a relative
path, so it's not that we're accidentally changing domains. any idea what's
happening?

tks
Jul 22 '05 #1
4 1671
What OS?
Does it happen every time or erratically?
Is the home page in the same virtual directory as the login page? Same
folder? If in different folder, is one or the other inadvertently set to be
an application?

--
--Mark Schupp
"Dica" <ge*****@hotmail.com> wrote in message
news:Id********************@rogers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw,
we write session info and then response.redirect to the home page. this
works for on the normal site, but session state info is dying on the demo
subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redirect uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks

Jul 22 '05 #2

"Mark Schupp" <no******@email.net> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
What OS?
windows 2000 advanced server Does it happen every time or erratically? every time
Is the home page in the same virtual directory as the login page? yes

Same folder? yes

If in different folder, is one or the other inadvertently set to be an application?
i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally
new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmail.com> wrote in message
news:Id********************@rogers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw, we write session info and then response.redirect to the home page. this
works for on the normal site, but session state info is dying on the demo subdomain. i'm sure the session info is being written since i can see it
when i response.write the value. also, the response.redirect uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks


Jul 22 '05 #3
Have you worked through everything in this list:

http://www.aspfaq.com/show.asp?id=2157

Create a simple page that demonstrates the problem and list the code here.
Something like:

<%
If Trim(Session("myvar")) = "" Then
Response.Write "not here"
Session("myvar") = "i'm here"
Else
Response.Write "session var=" & session("myvar")
end If
%>

should change from "not here" to "i'm here" when refreshed. Does it?

--
Mark Schupp

"Dica" <ge*****@hotmail.com> wrote in message
news:qP********************@rogers.com...

"Mark Schupp" <no******@email.net> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
What OS?


windows 2000 advanced server
Does it happen every time or erratically?

every time
Is the home page in the same virtual directory as the login page?

yes

Same
folder?

yes

If in different folder, is one or the other inadvertently set to be
an application?


i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally
new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmail.com> wrote in message
news:Id********************@rogers.com...
we've just set up a subdomain, 'demos' for one of our projects that
normally
works fine. on the login page, if the user enters the correct username/pw, we write session info and then response.redirect to the home page. this works for on the normal site, but session state info is dying on the demo subdomain. i'm sure the session info is being written since i can see it when i response.write the value. also, the response.redirect uses a
relative
path, so it's not that we're accidentally changing domains. any idea
what's
happening?

tks



Jul 22 '05 #4

"Mark Schupp" <no****@nospam.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...
Have you worked through everything in this list:

http://www.aspfaq.com/show.asp?id=2157
thanks mark. your link led me to the problem - the subdomain has an
underscore character in it.
Create a simple page that demonstrates the problem and list the code here.
Something like:

<%
If Trim(Session("myvar")) = "" Then
Response.Write "not here"
Session("myvar") = "i'm here"
Else
Response.Write "session var=" & session("myvar")
end If
%>

should change from "not here" to "i'm here" when refreshed. Does it?

--
Mark Schupp

"Dica" <ge*****@hotmail.com> wrote in message
news:qP********************@rogers.com...

"Mark Schupp" <no******@email.net> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
What OS?
windows 2000 advanced server
Does it happen every time or erratically?

every time
Is the home page in the same virtual directory as the login page?

yes

Same
folder?

yes

If in different folder, is one or the other inadvertently set to be
an application?


i thought there might have been a problem with one of the include files on
the login or home page killing the session objects, so i created a totally new page without any includes and attempt to response.write the session
values, but 's still blank. new test page is in the same folder as the
login.

--
--Mark Schupp
"Dica" <ge*****@hotmail.com> wrote in message
news:Id********************@rogers.com...
> we've just set up a subdomain, 'demos' for one of our projects that
> normally
> works fine. on the login page, if the user enters the correct

username/pw,
> we write session info and then response.redirect to the home page.

this > works for on the normal site, but session state info is dying on the

demo
> subdomain. i'm sure the session info is being written since i can
see it > when i response.write the value. also, the response.redirect uses a
> relative
> path, so it's not that we're accidentally changing domains. any idea
> what's
> happening?
>
> tks
>
>



Jul 22 '05 #5

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

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
3
by: | last post by:
This is a very open ended question. I have an app with a page that uses link buttons to change the display. On the prior page you have a list of objects. You click one of those objects to see it's...
1
by: Robert | last post by:
In Web.config file is a setting for sessionState. If I want to maintain a users' session state (ie use the Session object) in a web farm that is being load balanced by a Cisco CSS 11501 Switch. ...
2
by: Raj | last post by:
Hi Please help me out. I have specified a Session timeout of 30 mins in my web.config file. I'm using the InProc mode. But my session is expirng very quickly max 5 mins. There are almost 200...
6
by: Mr m?ll | last post by:
Hi Im quite new to web programming and I'm buildning this ASP .net page. I use VS 2003 and C# + IIS 5. The page consists of a login page that leads to a frame page (with some pages, reading from...
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...
3
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
4
by: Ibrahim. | last post by:
Hi, Kindly clarify the followings; 1. Is the session cookie & FormsAuthenticationTicket cookie Interdependent? 2. When a new SessionID is generated, I have noticed the Session Cookie and...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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.