Setting Session Variable Maxes Dllhost
I have an ASP application that has been running for 5 years that I am now modifying. Since then, I have installed asp.net 1.1 and 2.0 on my xp pro box. Whenever I run the "login" code for the app, it crashes as my dllhost goes to 98% cpu. I have traced the code to this line:
Session("SCHUserID")=123
What is strange is if I set the value to 11 or lower, this does not fail. What is also strange is if I set Session("SCH1UserID")= 123 it works. I know this has to have something to do with running asp.net on this box as well. I have tried running the app in its own process (High) and creating it's own virtual directory with no luck.
View Replies
ADVERTISEMENT
I have a sql query that runs on my asp page.
select
contactname,contactnumber,contactnumber1,contactem ail,address,city,state
,zip,type,sqft,0,bedrooms,baths,lotsize,acreage,ga rage,comments,price,0,
0,county from table1 where active='Y'
I need HASPHOTO to equal 1 if hasphoto <> 0 and HASPHOTO=0 when
hasphoto=0. Make sense? HASPHOTO usually equals a number, but in this
case, I want it to equal a 1 or 0 because I am exporting this to a CSV
file. I know how to do everything else, just not this part.
View Replies
View Related
I know that you can do : Request.ServerVariables("QUERY_STRING") but can
you actually set a serverVariable?
I know that sounds counter intuitive , but is it possible, via vbscipt/asp?
View Replies
View Related
I'd like to do something similar to CFParam, but in ASP - basically, I have a form variable ("Type") which may or may not be passed from the referring page. Some referring pages have an input field called "Type", whilst others do not.
I'm actually a CF developer, but keen to learn ASP. My current code at the top of the script is : Code:
View Replies
View Related
I'm trying to calculate the total time using values from database I run a select statement to find the timein column in my database.
Now how do i assign the result to a variable so that it can be used? There is only going to be one result because i'm checking it against an autonumber field. that is used as time 1. Code:
View Replies
View Related
I have been working on this issue for a while and found this forum and thought it wouldnt hurt to post it. I have recently upsized a shop to SQL server.I am running on a Windows 2003 Server running multiple websites. Ihave full access to this server.The shop works fine and orders are taken into the database after the SQL upsize.There is one page that is causing major problems.When this page is brought up, it maxes the CPU to 100% and i can seedllhost.exe is maxed out (one instance of it)I have looked thru my code for infinite loops and have debugged and iknow the issue lies somewhere in the code i am posting here. anyonewho can help, i would appreciate it.Keep in mind that with the access database the page that causes theCPU to max out runs fine.The code is attached in a text file.
View Replies
View Related
I have a login that I want to be able to set a session so if they are not logged in they cannot view other pages from the main page. I also wanted to know how to display the persons name that is logged in using sessions. There first name and last name are in the database. I did it before but i cannot remember how to do it.
View Replies
View Related
I have another problem regarding the session.timeout command . I m setting its value to be 30 mins but still my session expires after the default time out that is 20 mins.
I even have set the value of connection timeout in the IIS settings to be 30 mins but still no use........... its is stll taking the default time
View Replies
View Related
I have an ASP application (and associated .DLL) that generates HTML code.On one of my pages it generates a series of buttons (Input ... Language=vbscript ) each with an On Click sub associated with it. Once the ASP is expanded. each Onclick has only one statement in it, that is:
<% set session("Answer") = "001" %>
What I am trying to do is set a session variable based upon what button is pressed, because I want to use the "Answer" in future ASP pages.
View Replies
View Related
I want to set the asp session id path property. How can I do that?
I mean, asp session id is stored in a cookie and like any other cookie it should have properties (or attributes), how can I control it?
View Replies
View Related
I have these 3 tabs that I want the user to be able to select, a variable to be set, and then each page they visit in the site to read that variable and subsequently display content based on the variable that is set. So, Sheridan tab sees "Sheridan" variable content, Gillette sees "Gillette" variable content, etc.....
View Replies
View Related
I delete the files/cookies and clear history from the IE 6.0 browser and try to write in a text file use FSO but it dont write any thing in the file needs Code:
View Replies
View Related
I'm trying to set a session variable after displaying a form, then capture
the Session variable on postback. For some reason, the below code always
returns the form, not the "Step 2" results part.
What am I doing wrong? It's on a local network server, not on the web if
that matters.
<%
'* Step 2: Display results
'**********************************************
If Session("PageAction") = "view2" Then
Response.Write "Results"
'* Step 1: Display form
'**********************************************
View Replies
View Related
I have created a session variable.... and i have to write code to check for
this session for each ASP webpage in my website....Is there a alternative
I do not want to repeat the same code for valid session.... in each page..
View Replies
View Related
I first create a session variable 'client' in the login.asp file
The login.asp file opens a file (xxx.asp) with an include file
If I write
<!--#include file="../../../data/" & session("client") &
"/language_ger.inc"-->
I have a message stating that the application can't find the file.
If I write the path without the variable (" & session("client") & ")
<!--#include file="../../../data/eurovini/language_ger.inc"-->
it works without any problem.
Question
- is there is an error in the syntax?
- is it possible to include this kind of variable in an include file.
And if not, any idea to get the same result?
View Replies
View Related
I'm new and I hope I explain this correctly.I have a products page which populate products dynamically with checkboxes. when the form is submitted, I check for selected boxes using the split(). My problem is, products page submits the form to client.asp, and within that page is client info. then the client page is submitted to confirmOrders.asp, which will display client info, and products selected. the split() works fine within the client.asp page. I'm trying to assign the checkboxs to a Session variable and use it on confirmOrder.asp. Then display the session variable on confirmOrders.asp page. I know I can do everything in one shot with confirmOrders.asp, but the client wants to display the client.asp page then the latter. hmm...hope this makes sense.
<client.asp>
Session("myarray") = Request.Form("chkproduct")
<orderConfirm.asp>
strP = Session("myarray")
p_Array = Split(strP,",")
For i = 0 to UBound(p_Array)
Response.Write p_Array(i) & "<br>"
Next
View Replies
View Related
Is there a simple way to store session variable on the client-side
javascript or retrieve the value of the session variable from the
server-side session("variable") script onto the client-side script?
I want to keep the value of user entry on the text field of an html form
after refreshing.
View Replies
View Related
I have variables declared like this:
<p class = "hide">
<input type="text" name="nameVal" value="">
</p>
How do I make the "nameVal" as Session variable?
View Replies
View Related
Quit simple: I try to make a session variable on a hiddenframe like:
document.contexthiddenform.URLattach.value = URLvar;
document.contexthiddenform.target = 'hiddenframe';
document.contexthiddenform.action = 'context_hiddenframe.asp';
document.contexthiddenform.submit();
}
</script>
<%
session("sesURLattach") = Request("URLattach")
Response.Write "<script>" & vbcrlf
Response.Write "alert('" & session("sesURLattach") & "');" & vbcrlf
Response.Write "alert('" & Session.Timeout & "');" & vbcrlf
Response.Write "</script>" & vbcrlf
%>
</form>
The value of session variable is shown and the timeout value (60) shown as well. But immediately I get the error message "a timeout has been occurred, you have to log in again". If I make the highlighted sentence comment then I don't get the error.
Has somebody an idea why I receive immediately the timeout error?
View Replies
View Related
A user field called 'Custom1' exists in my data base. This user field is used to hold a URL path to a custom download page for clients. Each client has their own unique URL which directs them to specific locations.What would the proper format be for the variable:
=Session("Cutstom1")
to be able to be displayed as a hyperlink with the label: "DOWNLOADS" while at the same time sending the current user to the 'value' / 'path' to which the Custom1 field contains? I am not an advanced coder and am just starting out with basics.
View Replies
View Related
I assume that mostly,asp programmers use their own session variable to know whether a user is to be considered is-logged-on(together with a home-written log-on form web page).
However, I wonder if there is a convention for the name of such a variable?And does asp/iis have a built-in is-logged-on status variable? For example when IIS is to render a normal html page with an acl that invokes a basic authentication, can I as an asp programmer make use of that status variable, and can I write to it to force a logout programatically?
So, this is not about it there is a session as such, it is about beeing logge-on inside an asp-session. I've looked around but haven't found any good info on this.
View Replies
View Related
I have drop down for selection of council - it is then passed to a session variable - it works fine to display the variable, but when I put it into a hidden field, if the value was Milwaukee it is fine, but if the value was Green Hills, it only puts Green in the hidden field. How can I fix this - I need it to put Green Hills in the hidden field.
View Replies
View Related
when a session variable is declared,how long does that variable last?this isn't coming out of the global.asa.i'm pulling a field out of a db and declaring it with session(whatever)=whatever and then calling it out on the page.
View Replies
View Related
i don't know where else to go, if there is a better or more appropriate forum for this question please let me know.
I have just moved to another isp host and some of my pages use session variables. I have a session variable, amongst others that hold the username and customer number to display data. The session variable value keeps disappearing giving me ADODB.Fielderror '800a0bcd' errors.
If i hot the refresh button a few times the session variable data comes back. Somebody please tell me they've experienced this 'cos i'm losing my mind ! I've updated the page to show the variable, and it does and i've removed underscores from filenames (apparently a possible problem with IIS 6)
View Replies
View Related
i'm using the dundas freelib upload code to upload files in my website. when the user choses to upload a file a new window is opened and the upload procedure goes fine and the file is uploaded successfully. but the problem is the i want to know the name of the file in the parent window to save it in the database.
i tried to use a session variable which contains the name of the file but it dosen't work. the parent window contains a form which is used to insert new data in the database so i can't use the upload window to insert the filename in the database.
View Replies
View Related
i don't know how to retreive the session variable from the previious page..i have also problem querystring application because the browser execute very slowly..and sometimes page will not be displayed.
View Replies
View Related
I need to create an array with a session variable. According to my book, the following should work,. but if fails
for each key in request.QueryString
if left(key,6) = "cboRun" then
iIndex = cint(mid (key,7))
response.Write(iIndex & "<br>")
session.Contents("iRunNo")(iIndex)=iIndex
end if
next
it is the (iIndex) part which fails. If I remove this, then I can create a
single session variable.
View Replies
View Related
i m receiving username from the user using form's post method (request.form("username"))and then created session variable as follow..
Code:
username = request.form("username")
session("username") = username
on other page i get username from session variable as follow.
Code:
username = session("username")
this workes fine when i run it on the same PC that is hosting my page(on which IIS is running)..however problem arises when i request page through different PC in the LAN.Nothing is assigned to variable username.
View Replies
View Related
Can I prevent session varaible shared by the new opened browser? For example, if the user has login and viewing a page, when he opens another browser, the user has to login again if he want to veiw the same page in the new browser.
View Replies
View Related
First, I like to know if I can specify how long a session variable could expire?
I am having problem with user logged in period when using session variable.
When I logged in and go away from keyboard for like 10mins. By then I have to login again in order to post or any website features that requires login.
I have not yet create a cookie for the user when they are login.
What is the proper way of doing it?
View Replies
View Related
Im trying to pass the 'month' variable which is a session variable from one page to another. It manage to appear on the other page in a textbox but when I try to pass it to the recordset, it fails. Can I know why?? This is the page which I'm passing the variable to. Code:
View Replies
View Related
I was wondering if there is a way to "trim" the session value in ASP. I know that "trim" takes the spaces but what I want is to shorten the actual txt. For Example I have a Session.MM_Username.
This session return the users email address because I am using this as there username for when they log in. Is is possible to only return the characters before the "@" symbol? when they log in I want the user to see "Welcome abc" not
see their email address .
View Replies
View Related
I am storing my site name as a variable in global.asa. I am trying to retrieve it and use it in a page title. The following is what I am using.
<% title="Homes in "& session("communityName") & ", " & session("cityName") & " | Online Resources" %>
I can use Code:
<%= Session ( "communityName" ) %>
anywhere in the body and it works. So I know that the variable is not empty.
View Replies
View Related