IIS Restart + Session Time Out
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....
View Replies
ADVERTISEMENT
When IIS is restarted session_onEnd is called. though the debugger is not available at this point in Session_onEnd, is there any way that the code in session_onEnd is running due to iis restart and not from the timeout.
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
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?
View Replies
View Related
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?
View Replies
View Related
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.
View Replies
View Related
Is it possible restart IIS from ASP? I tryed activex dll, but it wont work, i think its an "user rights" problem When i use this dll form vb6 all works fine. Any other solution?
View Replies
View Related
Sometimes i need to restart the IIS on a current server, but the
problems is that if i want to, then i have to contact them by either
email or phone, but sometimes it takes few hour to do it. So i wonder
if there Is a way to restart your IIS Programmitcally?
View Replies
View Related
is it possible to restart apache from asp? the asp, of course, is running on the apache. it seems impossible to me, but.....of course, that is exactly what i am supposed to do. my asp script edits the config files, and i want the changes to take place immediately after i edit the files.
View Replies
View Related
Is it possible to have a session expire/time out or log out for a windows regular
domain user logged into an .asp application?
View Replies
View Related
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"?
View Replies
View Related
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:
<%
user_login = request.form("username")
session("user") = user_login
%>
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.
View Replies
View Related
I have a big problem with the SMTP service in IIS on Windows Server 2003.
I tried to install FTP service on windows Server 2003 but had to cancel it as it did not appear to be working. Since then, i went back into IIS Manager and all services were stopped. I have got the default web site services started OK, but the SMTP service is stopped, and right clicking and selecting start does not start it running again. I just get a dialog box saying that the service isn't running and to start it running again (!!!!! That's what i was trying to do!!!!!!!!)
i also tried to restart it from DOS and got a message saying that the service was already running!!
i have also tried to stop the service from DOS and get a message saing that 'The Service could not be controlled in it's present state'!!!
View Replies
View Related
Recently changes were made to my pc. So I am now using another profile (which is a copy of the old profile), in order to enter a different domain when signing in to windows xp.
Since those changes, when I am trying to view asp pages through localhost, I am getting a 500 error, saying the page can not be displayed.
After shutting down and restarting, it works again (maybe a shutdown is not necessary, but only a reatsrt. I haven't tried).
When it was not working, I have checked the IIS and the directory "WEB SITES" state was "Running".
I do not remember anything regarding IIS, as I installed it a long time ago and once it worked, I did not have to do anything more. I do not want to reinstall, as I do not remember how, and it will take me a lor of time now.
View Replies
View Related
using win 2000, asp and mysql. when i perform a bad sql statement in asp like...
dim cn
set cn = server.CreateObject("adodb.connection")
cn.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=homerton;UID=root;PWD=;OPTION=35"
dim rs
set rs = server.CreateObject("adodb.recordset")
sql = "selec * from tablename" 'note the typo on select
rs.Open sql,cn
IIS complains with
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'Open'
If i correct the error IIS still fails to work until i restart the w3svc service. On another pc running the same setup this doesn't happen, and correcting the typo enables the asp to work again.
IIS isn't crashing, it would still run a simple asp page with response.write etc on my pc, it's just when it comes to an sql statement again.
Anyone know why this occurs and if there's a solution?
View Replies
View Related
I am trying to capture the server restart event, so when ever it restarts, it connects to a web page to update its current ip address.
View Replies
View Related
i want to increase my session time so that it does not expire till the user closes the site.
i have written in global.asa file the following code:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_OnStart
Session.Timeout = -1
End Sub
</script>
but it doesnt work and my sesion still expires.
View Replies
View Related
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.
View Replies
View Related
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:
View Replies
View Related
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
View Replies
View Related
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:
View Replies
View Related
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.
View Replies
View Related
How will we convert the system date & time to other timezone for eg: Eastern Time zone using ASP?
View Replies
View Related
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. ?
View Replies
View Related
Any some tools or sample codes drop down asp script execute time and
database connection time ?
View Replies
View Related
I'm trying to do a very simple code that converts the server time into a time zone of your choice.
<%
dim h 'Current Hour
dim i ' Time Zone Increase - add or subtract hours
dim r 'Result Here
h = Hour(Now)
i = + 2
r = h + i
%>
but obvisouly i'm having trouble with the time zone convert.
View Replies
View Related
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.
View Replies
View Related
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.
View Replies
View Related
how to find the session expired or not without using any session varaibles?
View Replies
View Related
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 ......
View Replies
View Related
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...?
View Replies
View Related
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?
View Replies
View Related