I have just inherited a system which I have to maintain so if I'm missing something obvious here then go easy. The problem is my sessions won't timeout with any reliability. Sometimes they do and sometimes they don't. There doesn't appear to be any consistency to it.
In my global.asa file:
Code:
Sub Session_OnStart
session("logged_in") = "FALSE"
session("whereTo") = 0
session("user_project") = ""
session("client_id") = ""
Session.Timeout = 20
End Sub
Are sessions just unreliable by their nature or am I missing something?
I am using CDONTS to send mail to the user from my ASP application. However, the code doenst works all the time. I am able to get mails but nothing happnes most of the time. The code works maybe once in 20 tries. What could be the reason?
i posted earlier, and the response seemed to be there is another dll i need to use the cdonts object, i used it fine for awhile on my old setup, i upgraded to 2k3 and it errors up as if cdonts isnt an object. So is there a dll i need to have to use the cdonts object in iis 6 or do i need to rewrite my code to use cdo? (if so, please provide asp 3 example on how to send an email with recepient, sender, body and subject)
I have got a problem wit da FILESYSTEM in ASP coding. Before I use window 98 installing PWS. Everything works fine....
And now, I use Window XP professional ( Laplop ), everything is updated ( Service Pack, .NET component, ASP.net stuff...
All my ASP code with FileSystem which used to be properly ran cant be executed on my XP server.
There is no message error on da page, but the browser icon keeps spinning and da content is blank, it means u dont see anything happens. I wanna ensure dat all da code is right, cos it work properly with PSW and other servers. I even tested with a simple code, but It still doesnt work..... Code:
I'm using SQL Server and I decided to convert one of the fields from nvarchar to ntext. The transition in the manager was all right, but my ASP pages wouldn't display the ntext and there is no error message. I use Code:
I have a database table with several records. Now I am filtering some data based on the "where" statement. If I run the query in analyzer then I get 20 rows. If I run the same query in asp and assign GetRows() to an array, then the array returns only 4. I am not sure if I am using the GetRows wrong. Here is a snipp of my code:
I have a site that utilizes online forms. The problem is people could easily spend well more than 20 minutes filling out the forms before submitting them. To avoid the default timeout of 20 minutes (or whatever) I added a Session.Timeout = 120 to the forms page. I also checked IIS and set the connection timeout property to 120 minutes as well.
sessions still seem to be timing out well short of the 120 minute cutoff. (I haven't yet tested to see if it's still 20 minute default or somewhere between 20 and 120).
Is there anywhere else this setting might be controlled? Is there any simple way to do some sort of "keep-alive" from the page so that the server thinks it's active?
I got this error when i run the ASP. ASP 0113(0x8004005).The maximum amount of time for a script to execute was exceed. 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.
I'm using IIS 5.1. I changed in the IIS instead of the asp page as there is a lot. I went to IIS then my application properties and go to Application Configuration. Under the option tab i set the ASP Script timeout to a larger value. Default is 90 seconds. I had set it to 180 seconds. May i know will this affect the system to become slower? As the users said in order to display something in the application it take longer time than previously.
I want to be able to inform a user that his session has timeout when he has been idle beyond his session. Like the normal message you get when your session ahs been idle for sometime.
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
Is it possible to set individual session.timeout's?
I have a session.timeout in the global.asa that is set to 10 min. I'd like to keep this as is, and also declare a differnt session time out for: Session("shopper") on an ASP page. Is this possible? Session("shopper").timeout doesn't seem to work.
And if I: Session("shopper") = shopperID session.timeout = 60
on that ASP page, will this override the session.timeout = 10 that is set in the global.asa?
Does anyone have some code or know how to to display a message box when the user session times out? One that would redirect them to the login page would be the most helpful.
I have a simple form connecting to an Access database where users log in, fill out the form, and submit. Everything works fine.
However, sometimes it takes a user 20 minutes or more to fill out the form. When the user then hits "submit" he is given the login page instead of the response page I have built in. If the user fills the form out in less than 20 minutes or so, it works fine.
I have Session.Timeout=720 (2 hours) but this hasn't changed anything.
Does anyone know what I'm missing? I'm pretty new at asp so forgive me if it's something simple.
I'm not exactly hot on asp, but I have managed to create a members area / pages on a site that requires the usual login etc through username and passwords.
The problem that I'm having is that people are being logged out and forced to log back in etc.
Here's the code for the log-in form on the site: ....
I use a database to authenticate users. Thier logon info is stored in a session.When the session times out it redirects the user back to the login page,which, when logged in sends them to the secured homepage.How can I return them to the page they were on when the session timed out,rather than starting over on the homepage?
I am trying to make an access control where a code should be available for 60 minutes. When my user is login on I am doing this, after his access code has been authorized:
Session.Timeout=70 Session("Time")= Dateadd("n","65",now()) And in the pages where is allowed (for one hour) I am doing this:
if cdate(Session("Time")) < cdate(now()) then Session.Abandon end if
Does it look correct or is there a better way of doing this?
In my application, the main page is accessed via a login screen. A particular record is accessed based on the value of login page. Everything works fine. However, if this screen is kept idle (not sure for how long now), and then if I try to save,the following error message comes up:
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'SubgrantIntID ='. /gwisbrandnewready2/insertorupdatecurrentexpense1.asp, line 32
Is there any way to code to get one logged out automatically after sometime, so that, I do not have to encounter the above error which means after sometime, the login screen will appear instead. Does the custom timeout override the server default timeout?
I have an online B2B shopping site that I created using ASP. Because the order sheet is different for each customer, they must log in to access their online ordering site. My question is, is it possible to capture a session timeout when it happens and tell the user?
We are having problems with customers leaving their desk after they have logged in, coming back and filling out their order sheet and then submitting the sheet only to find out that the session has timed out. They then have to go back in and re-enter the products that they are ordering.
I changed the login session timeout from default 20 to 30 minutes, like following: Session.Timeout = 30 But it doesn't work. I logged into my webpage, let it be inactived for 25 mins, and clicked on some links but the session expires already. Any one has cues? I put this line on the check login file after checking submitted username and password and before defining all session variables.
I have a session object Session("login") whereas I need to extend the time on this to 1 hour, instead of the default 20 minutes. After initializing Session("login"), how would I change the timeout value?
I am developing a e commerce site. The user may become a member and therefore requires to log in. In the development of this site we have just exited out and re-entered the site without logging on however our details are still as we logged on.
If the user purchaser adds item to their cart a session id is also created and if the situation as above occurs the items are still in the bag . What is the best way of stopping this ie if they have exited the program by clicking the x if the return within the session the order id is cleared and we start again.
I'm having problems with my sessions timing out fairly quickly (much less than the 20 min default) on a site i'm developing. The site is hosted on a shared platform - do I still have the option to set an explicit timeout period, and if so, where should I place this in the code (i.e in the login page?)
I'm having problems getting session timeouts to change programmaticlaly under IIS6.0. This is unchanged code that ran as expected under IIS5.0. Anyone else run into this problem?
All, Just to give a little background this is reagarding an ASP 3.0 application running on IIS6 using the default app pool.
I have set the session timeout to 540 minutes in IIS (under options tab in Application configuration). There is no code in the Session_OnStart or Session_OnEnd in the global.asa. Via an include file, each page executes
Sorry, just wanted to give some background on what we're dealing with. Anyways, the problem is that the users are saying their session state is expiring much sooner than 540 minutes. How is this possible? What did I miss? Are there better techniques to ensure the 540 minute session?