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

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 1722
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Microsoft | last post by:
I am using Session variables in my ASP application. I have tested the application on a Win2k professional and it works fine. When the same web app is installed on a win2k advanced server from the...
1
by: farooqazeem | last post by:
Hi guys, I’m facing some problem can u solve it. Problem is: I’m giving user Id and password in (Login_sess.asp) and submit it to page (sess_test.asp). I am setting session variable...
12
by: Edward Rothwell | last post by:
I have a web site where once a user has logged on I store their MemberID in a global variable in the global.asa file. Then in other pages I find out which member I am dealing with by looking at...
14
by: Bobby | last post by:
I have this line, at this time the value of Session("Login") is 1: Response.Write "<a href=" & Request("script_name") & _ "?action=show&o=" & rsCustOrders("OrderID") & _ ">" &...
6
by: Brian Brinks | last post by:
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...
5
by: ASP.Confused | last post by:
As you can tell from my previous posts on this issue...I'm really confused :-/ I have a few ASP.NET web applications on my web host's "https" server. Our web host has a single "bin" folder for...
4
by: N. Demos | last post by:
Hello, I'm learning ASP.NET, and am having a strange problem with some example code from the book I'm using. The code increments and displays the value stored in a session variable when the "Add"...
14
by: Martin Walke | last post by:
Hi all, Is there any limit to the number of session variables a site can have? And is that affected by global.asa at all? The reason why i ask is that i have a relatively simple site that...
20
by: teddysnips | last post by:
Weird. I have taken over responsibility for a legacy application, Access 2k3, split FE/BE. The client has reported a problem and I'm investigating. I didn't write the application. The...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.