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

Problem with Sessions on WIN2K Advanced Server

Hello,
I am trying to debug an issue with sessions in my ASP 3.0 web
application, which runs fine on WIN2K Pro and WINXP Pro, yet fails to
function correctly on WIN2K Advanced Server.

My actual application is using sessions to store username, and security
level (permissions) for my application. The default.asp page is the login,
where these values are set. I have triple and quadruple checked my IIS
Settings to make sure "Enable Session State" is checked, and the
session.timeout is set to 120. Now if I remove my application, recreate it
in IIS admin, stop and start the IIS services, and run my application, the
session variables seem to be saved across the first redirect to my
main_menu.asp page. Here I have several menu choices, which are dependent
on the session("seclevel") to determine which they can or cannot access.
Here is where it seems my session vars are lost, since when I click on any
choice, I get redirected to the log_out.asp page, which abandons the session
and returns the user to the login (default.asp) page.

Is there something I could be missing for WIN2K advanced server that I
have not thought of? Any help is greatly appreciated. I will attach some
basic code for the above pages below.

Thanks,
Mike

Default.asp ...
//---------------------------->
Dim lRs
set lrs = server.createobject("adodb.recordset")
lrs.activeconnection = lconn
operatorstr = "Select Type, OperatorID, UserPassword, SecurityLevels, Name
from OperatorTableFile WHERE OperatorID = '" & user_name & "' AND
UserPassword = '" & userpassword & "'"
lrs.open operatorstr
Call ErrorVBScriptReport(operatorstr)
Call ErrorADOReport(operatorstr,lConn)

if not lRs.EOF then
' randID = return_random_num()
'write function to grab sixth value from left on lrs("Securitylevel")
vSL = cStr(lrs("SecurityLevels"))
vtSL = left(vSL,6)
vvtSL = right(vtSL,1)
session("UtilSecLev") = vvtSL
'response.write session("UtilSecLev")
'response.end
vtSL = left(vSL,24)
vvtSL = right(vtSL,1)
session("SASecLev") = vvtSL

session("name") = lrs("Name")
session("ClerkId") = user_name
'response.write session("name") & " " & session("ClerkId")
'response.end
response.redirect "main_menu.asp"
'response.redirect "main_menu.asp?USL=" & session("UtilSecLev") &
"&ClerkId=" & session("ClerkId")
else
msgError = "Invalid user and userpassword"
end if
//---------------------------->
search.asp
//---------------------------->
if session("UtilSecLev") = "0" or isempty(session("UtilSecLev")) then
response.redirect "log_out.asp"
'response.write "something broke"
'response.write session("UtilSecLev")
'response.end
end if
//--------------------------->
log_out.asp ...
//--------------------------->
<%
session.abandon
response.redirect "default.asp"
%>
Jul 19 '05 #1
0 1263

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

Similar topics

4
by: Jeffrey Silverman | last post by:
I am tearing my hair out trying to reproduce a problem. The one client user who has this problem is running IE6 on WinXP Pro. I tried reproducing the problem in Opera, Mozilla, IE5 on Win2k, IE6...
2
by: Jeffrey Silverman | last post by:
First of all, I apologize for multiposting. I am now reposting and crossposting in an attempt to reach a broader audience. Here is the original posting... (with some small changes) I am tearing...
12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
10
by: p175 | last post by:
Hi folks, I'm after some guidelines on general memory allocations for DB2 8.2.2 ESE on Win2k Server FP4 with 4gb physical memory. Seeing as everything is 32bit and win2k server does not...
3
by: Marc B | last post by:
Hello all, In a split database environment, is it safe to still use the following?: set db = CurrentDB or must one be more explicit and indicate the path and name of the database being ...
0
by: jamie shuker | last post by:
Hi I've had a strange problem come to light this morning. Basically we: 1. Obtain some data from a remote XML source 2. Convert this to a data set 3. Create a dataview from the above...
8
by: Bob Skutnick | last post by:
Greetings, I'm hoping someone has experienced a problem I'm having: I have an existing ASP application (working fine) that uses an SSL server certificate. My user community is made up of both...
8
by: Blaine Manyluk | last post by:
Greetings... I have some strange problems involving: Access 2000 (9.0.4402 SR-1) Windows 2000 Server 5.00.2195 Service Pack 4 Access apps with Oracle/ODBC back ends One app is a reporting...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.