469,306 Members | 2,121 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

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 1513
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

27 posts views Thread by mrbog | last post: by
1 post views Thread by Robert | last post: by
2 posts views Thread by Raj | last post: by
6 posts views Thread by Mr m?ll | last post: by
31 posts views Thread by Harry Simpson | last post: by
3 posts views Thread by bennett | last post: by
4 posts views Thread by Ibrahim. | last post: by
11 posts views Thread by Glenn | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.