Global.ASA File Limitations

Users are required to log into my website. I store the users name in a session variable. If the user doesn't log out and the session expires after 20 minutes, is it permissable to have code in the session end function of the global.asa which accesses a database and makes alterations to the users login status?

The reason I ask this is that I am having problems trying to get the logout to work for sessions which have timed out. If the users logout using the logout button, the code works fine.

View Replies


ADVERTISEMENT

ASP Uploader Without File Limitations

I have installed aspSimpleUpload and can upload files, up to 8 megs. However, I need to be able to upload any file size without any restrictions. Are there any file uploaders that I can use that will solve this problem?

View Replies View Related

Global.asa File

I am in much need of some help with my global.asa file. I use ASP and mySQL. In a nutshell, When a registered user logs in, a field in I have a field that gets updated in my DB Table. It is a TINYINT. When they log in, it updates the value to 1, when they log out, it updates it to 0. I use a tiny iFrame to create a loop displaying users with the value of 1. Basically a cheasy "Who's Online" function.

How ever I am now trying to create a global.asa file to say when the session times out, I want the global file to just update the value back to 0. I am also attempting it so that if the users browser window closes and then gets reopened PRIOR to the timeout limit, It knows they are still logged in. I can provide my script if anyone thinks they can help. !!!!!!!!!!!!!!!!!!!

I think my final thought would be that when the user closes their browser, that the session ends and the DB field gets updated from a 1 to a 0.

View Replies View Related

Include File In Global.asa

I have written general purpose functions in one of the include file, I want
to use the same in the global.asa. Do you know how to use include file in
global.asa

View Replies View Related

Is It Bad To Have A Large GLOBAL.ASA File?

It seems to me that I generally use two types of Functions:

Type #1-Ones that any page on my site might use
Type #2-Ones that only a single page would ever use

Logically, it seems that I should put the Type #1 functions in the GLOBAL.ASA file and the Type #2 functions in the pages that use them. I would like to, however, just go ahead and include ALL of my functions in the GLOBAL.ASA file.

Comments on this? Is this a good idea?

View Replies View Related

What Do I Need To Do To Implement A Global.asa File?

where does the file need to be?(root directory of server? main directory of my application?)

I don't need to include the global.asa file in my asp pages to reference the application variables, right?

can I use application variables without using a global.asa file?

when using a global.asa file, do I need to restart the server(or IIS) every time I make changes to it, or does the application automaticaly reset once a change has been made to it?

at the mo I have a global.asa file that looks like this.

<script language="vbscript" runat="server">
Sub Application_OnStart
Application("visitors")=0
End Sub

Sub Session_OnStart
Application.Lock
Application("visitors")=Application("visitors")+1
Application.UnLock
End Sub

Sub Session_OnEnd
Application.Lock
Application("visitors")=Application("visitors")-1
Application.UnLock
End Sub

</script>
and then I have this line in the asp page to display the number of visitors...

Code:

response.write(Application("visitors"))

I get nothing...!

what am I missing?

View Replies View Related

How The Global.asa File Changes Will Take Effect?

My website is hosted with the ISP and recently I have modified my Global.asa file for the ASP application.

So I think we need to restart the World Wide Web Publishing Service so that the changes in the Global.asa will take effect. I think it will be difficult for the ISP to restart the Service as there many applications will be running. So can you suggest how can my global.asa file changes will take effect so that I can deply those changes?

View Replies View Related

Session.timeout In Global File

Can I put a session.timeout = "45" in the global.asa file? and if yes, under what section?

View Replies View Related

Vritual Directory & Global.asa File

If I don't set a vritual directory for the new application on the IIS (simpley copy the new application to a parent virtual directory), the new application's Global.asa file won't work. Right?

View Replies View Related

Implementing A Global Log File For A Web Site

I am trying to implement a single global text file for my web site that will log the actions that my ASP scripts peform. The site I have set up involves about five web pages with scripting in VBscript. Several of these pages also use COM automation to peform certain tasks in Excel macros which also write to the text file.

Currently, I must declare an FSO object on each page. I also have to close the object before I call the COM components (because I write to the log file from the Excel macros, too) and then open it again when control returns to my ASP scripts.

The macros I have written inside Excel are quite intensive, so they chew up some time when they execute. In the end, each user will go through the five web pages to generate an Excel spreadsheet which they can download, and, during this process, will have logged about 15 messages to the text file. Code:

View Replies View Related

Dynamically Generate Global.ASA File?

On each site there is a global.asa file that ties into an Access database. The fields from the Access database instantiate the values of session variables used in the site. I am trying to do away with the need for a database and was wondering if when I set up a site I also set the .asa file for that site.

Then if a shop wants to change something like an address, phone, number, directions, etc., they would go a toolbox area of the site and there would be a form whose field values would be populated by the session variables from the global.asa file.

When the form was submitted I was thinking I could somehow use asp to write a new global.asa file and store it in the server. Is this feasible? Also, what would this mean insofar as permissions on the root directory of the site? I'd imagine they'd have to have write permissions no? Code:

View Replies View Related

Session Variables Are Not Getting Initialized In Global.asa File

I have initialized some session variables in Global.asa for our web
application. But these session variables are returning null values; it is was
working fine before; Recently we have rebuild our servers.

Please let me know if anyone of you have some idea?

View Replies View Related

Remove Connection Information From The Global.asa File

I have actually an asp web site which use the global.asa file to connect to
the database but for security reason, I want to put username and password
information (or the complete connection string) in a seperate file so only a
special user could read these informations.

View Replies View Related

Deleting A Temp File On Session End From Global.asa

I am trying to write a sub that will delete a spreadsheet file created by the web user. THis is the code I have inserted into the global.asa file, but it is not working.

sub Session_OnEnd
'delete the temporary excel spreadsheet
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(Server.mappath("temp/<%=session.sessionid%>.xls"))
Set objFSO = Nothing
end sub

I have made sure that the temp folder has permissions set for the IUSR_machinename account to be able to delete files. I am running IIS 5 on a windows 2000 server.

View Replies View Related

Using Global ASA File To Detect Language Setting

I am about to begin a web site for a client who wishes the site be in English, German, and Italian. What I am planning on doing is setting up a script in the global asa file that will detect if the users language is set to either it or de and if so, set a session variable to Italian or German, if not, set the session variable to English. In the actual pages themselves, I will use a select or if statement on each section that will have content. The statement's criteria will be the session language variable. I know if I was doing this site for someone who wanted it in 20 languages this may not be practical, but for 3 languages I think I can pull it off. So what's my question you ask? Is my approach sound and practical? If so, can someone show me the snippet of code that would go in my asa file to set the session variable. OH, and also equally important, when this site is spidered by search engines, will Google.com and Google.it and Google.de pick up their respective pages? The spiders have language settings, no? Don't they request pages from a (my) server just like any other request?

View Replies View Related

Global.asa An Error Referring To A File That Is In A Different Location

i have two sites on shared NT hosting

aw.neue.co.uk and smh.neue.co.uk

both sites have their own global.asa files and both appear to be throwing up an error referring to a file that is in a different location

anyone know whats happening?

View Replies View Related

Can I Implement Session Without Global.asa File In My Root Directory....

Can I implement session without global.asa file in my root directory....and is there any good site for sessions tutorial.

View Replies View Related

GLOBAL.ASA Recognize File Located In Subdirectory Of Webserver?

Will IIS6.0 recognize a global.asa file located in a subdirectory on the webserver?

I'd like a file that will execute whenever a file in the subdirectory is browsed - or, at least it is executed the first time a file in the subdirectory is browsed.

View Replies View Related

How To Write A Statement To Increase Session Expire Time In Global.asa File

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

CSS Limitations

I am having problems with CSS expression. I have setup page that expresses some inline CSS within a repaet region. I am finding that after around 25-30 repeats the CSS stops expressing. The CSS is designed to set the size and position of a table and after too many record repeats it stop positioning the tables in internet explorer.

This may be a browser limitation becasue when I examine the source code of the expressed document the CSS is intact but it is not showing up in the browser.

View Replies View Related

Url Size Limitations??

I am using variable passing through the url, and as it is getting larger, I am finding that occassionally some values are getting trimmed. Is there a limit to how long a url can be?

View Replies View Related

ASP Uploader Limitations

I need to use an script that uploads via one of these three components: ASPUpload, SA-FileUp or SmartUpload.
If any of you have some recommendations or know upload scripts using one of these components, it'd be great. Unfortunately, I need it to be able to upload huge files on the server (300 megs).

View Replies View Related

Limitations In OnTransactionAbort

I would like to know what I am allowed to do in Sub OnTransactionAbort and
what I am not allowed. (Or where can I find some material about this.)

I seem to have experienced that I am not allowed to do further database
transactions and cannot see the global variables. I can see Session
variables and do file transactions, however.

View Replies View Related

Filesize Limitations

Just migrating some code from CDONTS to CDO and noticed some behaviour I want to verify.
When using cdoSendUsingPickup the outgoing email spools to the local filesystem first before being routed out. When using cdoSendUsingPort it goes directly to the remote email server and seems to bypass the virtual SMTP server running on the local machine (which can be stopped). This is all fine.

I noticed that sending emails that exceed the maximum filesize limitation set in the SMTP server properties pages only seems to trigger an error when using port, not pickup. Is this expected?

View Replies View Related

Limitations Of Integers

i need to use bigger numbers that integer allows in asp. what should i use? i still need the whole number quality of the integer, but when i use anything larger than about ,100,000,000 i get the error Overflow: '[number: xxxxxxxxxxx]'

with the x's being the number i used. anyway around this?

View Replies View Related

Access Limitations

I am getting ready to start a rather large website for a company. Its basically going to be a auction type website. This site has the potential to get extremely big if they market it correct. My question is can Access handle it?

I've heard there are certain size limitations in Access, but have never heard what those are. Has anyone out here actually reached those limits? Also how hard would it be to convert a Access db to SQL Server 2000? Is there a conversion tool within SQL Server or Access?

View Replies View Related

Limitations Of Multidimensional Arrays

I am coding an ASP script, which currently requires a 5-dimension array, i.e. array(a,b,c,d,e)

I remember reading somewhere, a long time ago, that there is a limit to the number of dimensions in ASP. That was a long time ago, and I don't remember.

View Replies View Related

Sessions/Cookie Limitations

ASP based Cookies. What is the limitation in data you can store with them? 4kb? How can you get the current size of Cookies your domain has placed on the computer? Another thing. Are ASP based cookies actually written to the client computer, like javascript ones are; or are they stored in sessions?

Sessions. I know a Session can hold quite a bit of data, but I never found a limit. All I know is the more data you place in a session, the more resources the server is losing. Can anyone recommend how many different keys I should place in a session?

I usually hold things like Username, Password, AccessLevel and one or 2 other preferences, but I'm not sure if that's too much as is. What other common ways are Sessions used for?

View Replies View Related

Does Cookies Have Any Limitations When Used In Frames?

Does cookies have any limitations when used in frames?

View Replies View Related

CDONTS Mailer Limitations

I'm looking to manage an email list with SQL server and send out newsletters. Does anyone have an idea of the limitations of sending emails with CDONTS.MAIL object? How long would it take to send out 1000 emails via asp. I guess there are many variables with that, but that's say there were no attachments and we have 15k emails. These news letters really will only be sent once a month or so. But lets say our list grows to 10000 users or even 100,000. Is that a good idea to send 100,000 thousand emails through an asp page? I wouldn't think so .

View Replies View Related

Server.execute Limitations

I'm trying to implement the server.execute instead of using SS includes in a new project I'm doing. the server.execute command will not transfer variables or classes/subroutines defined on the other pages. Is this correct?

That's what I'm seeing but I want to be sure that I'm doing it right. I had to go back to SS includes to include my functions and classes I have stored in other files.

View Replies View Related

Javascript Function Limitations

I've been trying to use javascript for form validation. I want to get all the validation done in one function since it seems onSubmit can only handle one "return functioname()"
But there seems to be strict limits to javascript function complexity. For example, it seems I can't do this

if ( (a < 3 && b < 2) || (c < 5 && d < 9))

it seems I can't do any 'else if condition x'

also it seems I can't do any nest 'if condition return true'. Is there a way for a single javascript function to handle many different form validations? Or can onSubmit handle more than one returning function?

View Replies View Related

Global.asa :: Assign Diffrent Global.asa To Each Application

I have one application folder containing all ASP code files. I want host multiple sites pointing to same code. Can I do this ? If YES then how I can assign diffrent global.asa to each application...

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved