I have created an asp page with a submit button in it. On the onclick event I have written a java script to open a new pop up window that does the file upload. Unfortunately, whenever I click on the submit button to pop up the new window,I lose session. Any clues on how to persist my session value.
I recently upgraded my web server and SQL server to Windows Server 2003. I am running MS SQL 7.0 on the SQL Server. I had been running my application on Windows NT and experienced no issues for about 3 years. Now on the new servers I am getting multiple errors and I think I might be losing my session variables.
The errors I am getting are similar to errors I would get in NT when I was logged in to the app but inactive for a long period of time and attempted to resume work. Code:
I have been trying to solve this for some time now. I am setting a session variable to a value and calling response.redirect(). In the redirected page i am reading the session variable and it is blank. I printed the sessionid on both the pages to make sure that i have not lost the session itself.
The ids are the same on both the pages. It is just that all the session variable have becoce blank. I even looped through the session variables and all the session variables i created in the first page are present in the second page also, but without their assigned values.
Currently there is a web user that always gets an error on our application due to a missing session variable. All other session variables are still in tact, but this one seems to disappear and hence the user can no longer access everything on the site.
Any ideas as to where this value goes? I've checked my ASP code and saw nothing that would re-set this variable's value. Moreover, only a couple of users experience this problem.
How can I resolve the issue of session variables losing information with IIS 4.0 and I.E. 5.0? I changed the regsitry setting Microsoft suggests but that did not work.
what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a session(trust me that was the only 'way' i could imagine doing it), and i am losing the session variable, its just returning empty values.
The production system is running on NT. I have two test systems, one on 2000 server and one on XP Pro. All run IIS, server version depending on OS. All the pages check to make sure that the user logged on by checking the variable Session.Contents("LoggedIn").
One page changes directories: from https://<domain>/<virtual directory 1>/<virtual directory 2>/page.asp to https://<domain>/<virtual directory 1>/<virtual directory 3>/nextpage.asp.
It works fine in production. In both test systems the value of Session.Contents("LoggedIn") is lost and so the user is redirected to the login screen.
This has happened since I copied the production site to my test sites. Any ideas?
i have setup authentication on my website by setting session variables and it works but every once in a while the variables are lost and my users are logged out of the site
can someone tell me why this happens and how to fix it?
i have page1.asp that has a form and two text fields that user can enter and submit...
ok now i am sending these form variables to page2.asp..no problem here...
now page2.asp has a include file called page3.asp....in page2.asp we call some functions that are available in page3.asp...one of the funtions calls back the page2.asp...
at this point of time i am losing the form variables on page2.asp that i had from page1.asp since page2.asp is being called from the function in a include file(page3.asp) and not from page1.asp
how can i overcome this situation and still retain my form values on page2.asp
I am passing a value held in a session variable on a url. It works fine locally testing but when I put it on the main web server the value disappears. Nothing fancy here, real simple...what I am missing ?
I have a bunch of text fields that the user tabs through. How would I go about calling a function when a specific textbox loses focus so that when they tab out I can make a pop up and allow them to select some info
I am working with an .asp page that creates an email using CDONTS. I need to be able to capture a text screenshot out of a mainframe session and send it in the email. When the email is sent, I am losing the spaces that align the screenshot. Ex.
THIS IS A PRIVATE COMPUTER NETWORK ---
UNAUTHORIZED USE WILL RESULT IN PROSECUTION
Returns> THIS IS A PRIVATE COMPUTER NETWORK --- UNAUTHORIZED USE WILL RESULT IN PROSECUTION .
I am using dropdowns and they are populating correctly. I am having problems when I submit to the Dbase. I am losing the rest of the entry. This is a Ascess Dbase and they are text fields. An example of the error:
Dropdown Selections: from table OsmcSystemsImpacted VGS Data Center Legacy Platform VGS RVA
What ends up in my Dbase: going to table OsmcLogEntry VGS Legacy VGS
I am not getting anything after the first "Space" So what is happening to the rest of my data?
I guess this is a continuation of my erlier problem which I thought I had solved. I have several inputs being passed from one page where they are inputed in, to a preview page so the user can chek there info, then it will be passed to a page to submit the info to a data base.
I have a input that is the item description var name of �prodesc�. It pass from the input page to the preview page just fine. Then I use the same method to pass it to the next page to save it to a data base, but when it gets to the submit page the var �prodesc� only has the first word of the description that was shown on the previous page? Any one know why its acting like its been trimmed? Code:
I have a problem in that i have a page that works fine and shows all records/Output until i add Response.ContentType=msword
And then i only show every other record.
I probably should have coded the page differently. But for context - it's a school report system and i have setup a Subroutine which queries a database and builds a summary report for a girl. I wanted to print out a class list of these. I.e one for each girl in a class and so i loop around the results of one recordset and within each loop make a new query and create the report. This is probably not the best way to do it.
Anyhow, in the browser it woorks fine. As soon as i add the code to output it to word (or excel ) i lose evry other report.
for one of my forms, i have a textarea form element that is...substantially large (500x300px) users are instructed to hit enter/return on their keyboard to separate paragraphs but i have encountered a problem.
in the textarea, everything is wonderful. line breaks are clearly seen...its awesome. when i submit the form and when it writes to the database (the field is set as 'text'), everything is crammed together...there is just one space between where one paragraph ends and another begins.
has anyone encountered this problem before? does anyone know a solution?
I have a site that I'm trying to migrate to ASP.NET from ASP, and the foremost stumbling block I'm hitting is session state between the ASP and ASP.NET applications. In order to access this information, I'm doing a HttpWebRequest from the ASP.NET side into an .asp page, passing the session name on the get in order to request it from the ASP side and write it back to the response stream, giving ASP.NET access to it. Of course I change sessions each time I make the call from the ASP.NET side.
Soooooo, I'm thinking to myself, "Self, shouldn't you be able to fake out the server by getting the session cookie from the initial usage of the asp, pass that data to the ASP.NET, and use that to send a request back the ASP side under the appropriate session?"
From a real high level, I enter the site via a .asp page. This page in turn calls .aspx page from within a frame ......
I want to create an administration page which lists all the current users who are on the site at the moment.
I know coldfusion has this feature built in using the SessionTracker class... does ASP have something similar? If not... is there any way I can just iterate through all the session files on the server...?
I have a site developed using ASP, but each page I enter has a different session id when accessing the site using the domain name of the site. When accessing the site from my network and using the internal IP address, it is OK. Any ideas?
I wrote a website, which uses the session to store and track some vars.
Now I am gonna to covert it to desktop application by Activesite compiler 5, however, it doesnot support session , cookie , application() . SO ,I have no idea to find something can instead of session.
My orignal processing: Session -> modify Session var -> store to Database.
There is a problem about ASP session ID. ASP session is implemented by storing session id in a session cookie, but I read this cookie in ISAPI Filter, get a string as following: ASPSESSIONIDQADCQQTS = IAOFCBBCGDGMDGCNJIKPNBAN
But the real session ID is 554851848. (Real sessionID is sessionID property the ASP session object)
Problem is what is relation between them? And how to get real session ID from cookie session ID.
I did a session("adminlogin")=1, if I post it to the same page, it returns true. But if I response.redirect to another page. This value doesn't exist anymore. This is on the actual server where all the ms security is updated.
The same script worked okay on my test server (the security patch not patched yet.)
Has anyone encountered this? How do you overcome it?
I tried searching the net it says the problem lies with a ms security patch. How I wish I can unintall that patch.
I have asp and asp.net web application. When I run it in IE7 in first tab it starts a new session. When I open second tab and browse to the same site the new session is not started (infact I need to have new session there).
Whereas, 2 IE instances generate 2 unique sessions. Only issue is with IE tabs. Firefox also has similar things but lets not talk about firefox here. I am more concerned with IE only.
In my login script I set session("User") = rs("User") the session timeout is set to 20 min
Do I need to setup some kind of update session variable on each page so that the timeout does run out or does iis update the variable aslong as I'm browsing the website ?
And another thing, <% application("something") %> works fine on my test server but once I implement it onto the main webserver I dont get any text out, is there some kind of switch that enables this function ?
My buttons default as you can see in the code. But I now want to take what is already choosen in database and chose apropriate button. Can I use a session to choose a radio button? Code:
I am using the session(loggedin) to see if a user is logged into that section of the site. The problem is that it is timing out on them, is there a way to define the length of the session (I think it times out at 10 or 20 mins currently), but to extend it to an hour or so. Any thoughts.
I've developed a shopping cart app in ASP, to secure transaction by SSL, it 've put only the checkout page in SSL but all other pages i.e. product, cart etc remains on non SSL connection. How can I track user session from non SSL to SSL checkout page as the SessionID changes when shifting to SSL (to prevent session stealing/ hijacking). I'm tracking user session by putting SessionID in cart DB with products. Given below the preview of cart table ....