469,927 Members | 1,853 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Session variable being reset by global.asa

Hello,
It looks like a session variable that I created in the global.asa is
being reset by the global.asa when you return to a pge in the virtual
root directory.
Ex.
/vroot/index.asp - website home page
/vroot/global.asa - sub session_onstart
session("loggedin") = N
end sub
/vroot/login/validate.asp - sets session("loggedin") = Y
/vroot/music/index.asp - hitting this page shows loggedin=Y
/vroot/contact - hitting this page shows loggedin=Y
/vroot/index.asp - shows loggedin=Y
- there is no code in this page that sets
loggedin=N
*then hitting any other page loggedin=N

My only guess as to what is resetting loggedin=N is the code
in the global.asa file. Has anyone run into this before or know
if it may be a setting on the IIS server that causes this?
Thanks in advance!
Joe

Jul 22 '05 #1
5 1617
Is the session timing out or being abandoned in the index.asp?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
<jo***@rcn.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hello,
It looks like a session variable that I created in the global.asa is
being reset by the global.asa when you return to a pge in the virtual
root directory.
Ex.
/vroot/index.asp - website home page
/vroot/global.asa - sub session_onstart
session("loggedin") = N
end sub
/vroot/login/validate.asp - sets session("loggedin") = Y
/vroot/music/index.asp - hitting this page shows loggedin=Y
/vroot/contact - hitting this page shows loggedin=Y
/vroot/index.asp - shows loggedin=Y
- there is no code in this page that sets
loggedin=N
*then hitting any other page loggedin=N

My only guess as to what is resetting loggedin=N is the code
in the global.asa file. Has anyone run into this before or know
if it may be a setting on the IIS server that causes this?
Thanks in advance!
Joe

Jul 22 '05 #2
http://www.aspfaq.com/2157

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.


<jo***@rcn.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hello,
It looks like a session variable that I created in the global.asa is
being reset by the global.asa when you return to a pge in the virtual
root directory.
Ex.
/vroot/index.asp - website home page
/vroot/global.asa - sub session_onstart
session("loggedin") = N
end sub
/vroot/login/validate.asp - sets session("loggedin") = Y
/vroot/music/index.asp - hitting this page shows loggedin=Y
/vroot/contact - hitting this page shows loggedin=Y
/vroot/index.asp - shows loggedin=Y
- there is no code in this page that sets
loggedin=N
*then hitting any other page loggedin=N

My only guess as to what is resetting loggedin=N is the code
in the global.asa file. Has anyone run into this before or know
if it may be a setting on the IIS server that causes this?
Thanks in advance!
Joe

Jul 22 '05 #3
jl
index.asp does not reset nor change the session variable which is
why I think it is timing out for some reason. My website is hosted
by ipowerweb and I do not have access to the IIS admin app, it
took me 2 1/2 days to find someone there that knew what a virtual
directory is and how to configure one. Do you know of anything on
the IIS side that may be affecting this?
Joe

Jul 22 '05 #4
hehe i like the workaround for #10 :-)

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:Ol****************@TK2MSFTNGP14.phx.gbl...
http://www.aspfaq.com/2157

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.


<jo***@rcn.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hello,
It looks like a session variable that I created in the global.asa is
being reset by the global.asa when you return to a pge in the virtual
root directory.
Ex.
/vroot/index.asp - website home page
/vroot/global.asa - sub session_onstart
session("loggedin") = N
end sub
/vroot/login/validate.asp - sets session("loggedin") = Y
/vroot/music/index.asp - hitting this page shows loggedin=Y
/vroot/contact - hitting this page shows loggedin=Y
/vroot/index.asp - shows loggedin=Y
- there is no code in this page that sets
loggedin=N
*then hitting any other page loggedin=N

My only guess as to what is resetting loggedin=N is the code
in the global.asa file. Has anyone run into this before or know
if it may be a setting on the IIS server that causes this?
Thanks in advance!
Joe


Jul 22 '05 #5
jl
It looks like it was a setting on the server that has been changed to
resolve this issue. Thanks for the ideas!
Joe

Jul 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Microsoft | last post: by
1 post views Thread by farooqazeem | last post: by
12 posts views Thread by Edward Rothwell | last post: by
6 posts views Thread by Brian Brinks | last post: by
5 posts views Thread by ASP.Confused | last post: by
14 posts views Thread by Martin Walke | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.