Newbie question: Session_OnEnd question 
Author Message
 Newbie question: Session_OnEnd question

I have a site that generates PDF files dynamicly each time a user views it.
Problem is, after so many visits those pdf files builts up in the directory.
I want to delete the pdf files when a user close their browser. I wrote some
VB Script to do so but where should I place this code so it execute when
ther user timeout or close their browser? Any help would be helpful.

Sonny



Sun, 18 May 2003 03:00:00 GMT  
 Newbie question: Session_OnEnd question
In Session_OnEnd

Jeff


Quote:
> I have a site that generates PDF files dynamicly each time a user views
it.
> Problem is, after so many visits those pdf files builts up in the
directory.
> I want to delete the pdf files when a user close their browser. I wrote
some
> VB Script to do so but where should I place this code so it execute when
> ther user timeout or close their browser? Any help would be helpful.

> Sonny



Sun, 18 May 2003 03:00:00 GMT  
 Newbie question: Session_OnEnd question
i tried that but it doesn't seem to work. I know the code is fine because I
tested it within an ASP page.
My code was placed in the Session_OnEnd in the Global.ASA file. everything
starts up fine and close fine but it just doesn't delete the files. what
could be causing this?

sonny


Quote:
> In Session_OnEnd

> Jeff



> > I have a site that generates PDF files dynamicly each time a user views
> it.
> > Problem is, after so many visits those pdf files builts up in the
> directory.
> > I want to delete the pdf files when a user close their browser. I wrote
> some
> > VB Script to do so but where should I place this code so it execute when
> > ther user timeout or close their browser? Any help would be helpful.

> > Sonny



Sun, 18 May 2003 03:00:00 GMT  
 Newbie question: Session_OnEnd question
Is your virtual directory marked as an application and is the global.asa in the root directory of
the site and is the global.asa accessible by the IUSR_machinename account (even for authenticated
sites)?

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Quote:
> i tried that but it doesn't seem to work. I know the code is fine because I
> tested it within an ASP page.
> My code was placed in the Session_OnEnd in the Global.ASA file. everything
> starts up fine and close fine but it just doesn't delete the files. what
> could be causing this?

> sonny



> > In Session_OnEnd

> > Jeff



> > > I have a site that generates PDF files dynamicly each time a user views
> > it.
> > > Problem is, after so many visits those pdf files builts up in the
> > directory.
> > > I want to delete the pdf files when a user close their browser. I wrote
> > some
> > > VB Script to do so but where should I place this code so it execute when
> > > ther user timeout or close their browser? Any help would be helpful.

> > > Sonny



Sun, 18 May 2003 03:00:00 GMT  
 Newbie question: Session_OnEnd question
nevermind, it was working...at Session_OnStart, i set the timeout to 60
mniutes and totally forgot about it.
so the session_onend executes 60 minutes after the user close the browser...
thanks guys...silly me.

Sonny


Quote:
> Is your virtual directory marked as an application and is the global.asa

in the root directory of
Quote:
> the site and is the global.asa accessible by the IUSR_machinename account

(even for authenticated
Quote:
> sites)?

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --

> Please do not email questions - post them to the newsgroup instead.
> --



> > i tried that but it doesn't seem to work. I know the code is fine
because I
> > tested it within an ASP page.
> > My code was placed in the Session_OnEnd in the Global.ASA file.
everything
> > starts up fine and close fine but it just doesn't delete the files. what
> > could be causing this?

> > sonny



> > > In Session_OnEnd

> > > Jeff



> > > > I have a site that generates PDF files dynamicly each time a user
views
> > > it.
> > > > Problem is, after so many visits those pdf files builts up in the
> > > directory.
> > > > I want to delete the pdf files when a user close their browser. I
wrote
> > > some
> > > > VB Script to do so but where should I place this code so it execute
when
> > > > ther user timeout or close their browser? Any help would be helpful.

> > > > Sonny



Sun, 18 May 2003 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Session_OnEnd Question

2. Resizing forms question (newbie question)

3. questions,questions,questions.

4. Atten: Larry Serflaten - Re: Dictionary Questions, Questions, Questions

5. Questions!Questions!Questions

6. Questions Questions Questions

7. HELP QUESTION HELP QUESTION HELP QUESTION

8. VBScript, ADO, ASP: Yet Another Stupid Newbie Question

9. newbie question

10. Simple backup script question from a newbie

11. newbie question - activeX lib usages

12. NEWBIE QUESTION: ReDim Preserver Multidimensional Arrays ??

 

 
Powered by phpBB® Forum Software