On my server Iis 5.0 IIS have ASP session state set to 20 minutes ASP Script time out set to 200 seconds. But when I use my pages...I am leaving one page open and watching the time.
When its about 5 minutes I continue with submit button and it returns back to the main page...(i.e. if session is "" then return to mainpage.asp). Why is the server not giving me the full 20 minutes. The server is just timing out. I tried to put in session.timeout = 60 and still no luck.
Can someone offer some clarity on the issue of session time out. If I understand correctly the default is set to 20 minutes and is reset to 0 each time a call is made to the database - which could simply be a different page request (?).
I seem to be frustrating a number of users because they tend to linger on one page for a long time - in some instances reading info and in others writing, and re-writing, and scrutinizing their submissions on a couple of forms. Because I check (via an include file) for an active userID on every page....
they can complete their form and submit, but are then requested to log back in to the system...and the info they added IS in the database...but NOT associated with them due to the session time out. Of course, this creates some nasty data issues.
I'm looking for a better way to approch this issue. On the forms pages I've changed the session time out to 30...but wonder if that controls more than the page it is on? Dont know. And it does nothing to solve the issue of data entered and not being associated with a user.
Is there a way to offer a 'warning' to the user that their session is about to time out? Or should I be looking to refresh something within the page at certain intervals - my concern there is - can i refresh part of the page an not others - if a user is filling in a form - would a refresh to that page automatically clear the form?
In my application we don't have session timeout. Now we want to implement it. If the user has not accessed the application or not triggered any every for certain period of time(for ex: 10 min) then I want to show a message asking user to continue the session or not. If user wants to continue I need to reset the timeout variable other I need to redirect the control to Login form.
I am getting problem of session timeout in my ASP Script.I set Session.Timeout=120 But the timeout is activated before the 120 minutes & i was thrown to login page again.I want to know, its some kind of bug or something related to server setting?
How would I go about increasing the session time of a user, before they are logged out for inactivity?The reason I want to do this, is because players may have the site open, while actually playing a game. But when they come back to report, they are no longer logged in, but it appears that they are.
I assign the cookie when they login using the following code:
response.cookies("username") = username Response.Cookies("username").Expires=#May 1,2020# But I don't remember writing anything that says how long the session is for.I think default is 30 minutes?
I am using classic ASP. When the session times out theglobal.asa event called session_on end is invoked which is absolutely correct. When I explicitely do IIS reset or iis restart then again session_on end is invoked. How can I distguish in global.asa event session_on end that this is natural session time out or explicit IIS restart....
I have a web app that doesn't utilize a specific logout screen (even if it existed, the clients would probably just "x" out of the app anyway).
I would like to track users' sessions, and I can insert into a user_log table as part of the login process, but how do I capture when a user ends their session? Can I update a sql table somehow in a global.asa file - using "onSessionEnd"?
we are having this funny problem on one of our win2003 hosting accounts. When a user logs in. The session times out almost immediately. We set the session with this script. Code:
but as you navigate the pages, it times out almost immediately (less than 1min). We are not using cookies at present, and not launched this particular site to the public, so it cant be a case of heavy traffic. I also checked the <%=session.timeout %> property, and its set to 30minutes. The funny thing, is that we have multiple accounts running on that server. We are talking with our provider, but no avail yet.
I would like to display the difference between the logging time [Session("start"] and the current time [now]. In hours minutes and seconds, I have tried a couple of things but all I see is gobbledy gook.
I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I get logged out.
I need to need to reload that sign in url every few hours Code:
there i was just windering how do i compare a date/time vlaue in sql server agaisnt the computers' date/time. for example, if computer date/time is two months or 2 weeks before the database date/time do something
Currently working on a ASP for a friend, which requires the date and time on it. It pulls in entries from an Access Database with dates and times in the format of:
"Fri Oct 17 18:02:46 2003" However my date and time on the ASP page is displayed as: "Friday, October 17, 2003 18:02:46" using the script: "<%Session.LCID = 1033%> <%=FormatDateTime(Date(), vbLongDate)%> <%Session.LCID = 2057%> <%=time()%>"
Anyone know how to change this script, fully or partly to produce the date and time on the format that's in the access database i.e. "Fri Oct 17 18:02:46 2003" Code:
I am working on a database that collects information about incidents. One of the fields that people enter is the time of the incident. I am trying to convert that string that people enter into a OdbcType.Time and I am at a lost.
When the Form is submitted I use the Date() and Time() functions to put the date and time into the Body part of the e-mail. The time reported is three hours earlier than the time at which the Form is actually submitted.
I understand these functions are evaluated on the server so the server must be in a time zone three hours earlier than where I am . Is there any way I can get the local time at the location where the user is actually located. ?
I am trying to compare the NOW time with a "deadline" time. Please help. Just not sure why this is not working. I need to be able to say IF IT'S BEFORE 9:30 TODAY, IT'S OKAY TO ADD SOMETHING. IF IT'S AFTER 9:30 TODAY, YOU MUST ADD IT TOMORROW.
CODE:
nowtime=now() deadlinetime=formatdatetime(now(),2) + " 8:30:00 AM" response.write "NOW: " & nowtime & "<BR>" response.write "Deadline: " & deadlinetime & "<BR>" if nowtime<deadlinetime then response.write "can send out today" end if if nowtime>deadlinetime then response.write "must send out tomorrow" end if
RESULTS: NOW: 1/18/2007 8:51:43 AM Deadline: 1/18/2007 8:30:00 AM can send out today
As you can see, NOW is GREATER THAN Deadline, so it should must send out tomorrow.
i want to calculate the total time between to dates and time.
Example: Total time elapsed from date 1 time 1 to date 2 time 2.
27/09/2004 11:00 - 28/09/2004 10:30
The user enters a record and then later comes back and closes it. I need to know the time it took from when they entered the record until the time it was closed.
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 am writing an XML file with lots of Data and it takes time but before the operation can be finished I get this error
Quote:
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.
Would anyone know if there is an easy and clean way of presenting maybe a time control field in html in an .asp page that allows a user to specify a certain time of the day? Currently using an <input name="SpecifyTime" type="Text"field but was wondering if there was a better way of doing this as to where users won't mistype in entering non time related characters?
Would it be a stupid idea to use the Log Util component to retrieve the UTC date/time? It appears that the DateTime property could be used for this, but I'm not really sure how it searches through the log file.