473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Session Start in Global.asa

I want to use the global.asa file to trigger tasks. Sessions get started
frequently enough to put some code in there to schedule tasks once a day
without resorting to vbs scripts etc which I can't get permission to run.
This works fine but does the code that gets triggered cause the person
starting the session to have to wait until it is finished. I was hoping it
started on another thread. Regards.
Jul 12 '06 #1
3 1302
"Chris" <no****@btinternet.comwrote in message
news:OK**************@TK2MSFTNGP05.phx.gbl...
>I want to use the global.asa file to trigger tasks.
Presumably this is because your site is hosted with an ISP who will not
allow you to deploy Windows services...?
Jul 12 '06 #2
On Wed, 12 Jul 2006 23:42:34 +0100, "Chris" <no****@btinternet.com>
wrote:
>I want to use the global.asa file to trigger tasks. Sessions get started
frequently enough to put some code in there to schedule tasks once a day
without resorting to vbs scripts etc which I can't get permission to run.
This works fine but does the code that gets triggered cause the person
starting the session to have to wait until it is finished. I was hoping it
started on another thread. Regards.
Assuming you don't want to make a service out of this, you could use
the session event. You'd have to have some thread safe way to know
that you hadn't started the process already and of course you can
simply create a new thread and fire away. The thread won't die when
the request completes so it should not be a problem.
Peter Kellner
http://peterkellner.net
Jul 13 '06 #3
I want to use the global.asa file to trigger tasks. Sessions get started
frequently enough to put some code in there to schedule tasks once a day
without resorting to vbs scripts etc which I can't get permission to run.
This works fine but does the code that gets triggered cause the person
starting the session to have to wait until it is finished. I was hoping it
started on another thread. Regards.
It's also possible to define a timer in Global.asax that gets started
in Application_Start and triggers a "tick handler" in that same
global.asax every so often.

Hans Kesting
Jul 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mladen Gogala | last post by:
How can I share session registered variables between different processes? Here is my problem: File 1: ----------------------------------------------------------------------- <?php...
3
by: Douglas Pollock | last post by:
I'm new to session id variables. I'm trying to write records containing the session id to a log file but the session id keeps disappearing. I'm using session_register() because the site has...
9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
1
by: Ann Leland | last post by:
I have been using session variables to pass a user name from one ASP page to another inside framesets for 9 months and it stopped working this week. I have made no code changes but there was a...
2
by: Bonj | last post by:
H I've got the following problem - I need to have an aspx page with two frames, although the question isn't necessarily about the workings of the frames, more session variables... the frames consist...
3
by: kingski | last post by:
I have a web site created with ASP.NET 1.1. availability Global.asax: protected void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
2
by: DamienS | last post by:
Hi, I'm trying to get away from using global.asax for reasons of 'neatness'. Am I able to register a HTTPModule that captures the starting of a user session? Isn't Session_Start an event in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.