Patrick
Tue Apr 13 11:17:15 CDT 2004
Thanks for your quick reply Aaron !
IF i understand well what is said on the page you mention, i need to use a
table that will store session IDs (plus some unique info) and the last time
they connected.
This table will be updated everytime the user connects to a page of my site.
Then i will use an external program (a service) that will run on the server
and checks for rows that have a "last connection time" field inferior to
current time more than 20 minutes (sorry for my bad english...)
Is that right ?
About my individual tables, i use it as temporary tables for complex
operations of search and sort of datas.
First i delete all records in the table and then i fill it and sort it with
many different queries.
These operations are inside transactions.
But because MS Access has no record level blocking, i feared to get errors
because of an exclusive lock when 2 users try to acess the same temporary
table at the same time.
That's why i use individual temporary tables.
If ever you think there is a better way to do this, your advice will be
welcomed.
See you
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> a écrit dans le message de
news:%231XRe%23WIEHA.1608@TK2MSFTNGP11.phx.gbl...
> You will need a scheduled cleanup routine, since you can't rely on
> session_onEnd to ever fire.
http://www.aspfaq.com/2078
>
> A better solution would probably be to use common tables for all users,
> rather than create and drop tables for every individual session. Why do
> these people need to have their data stored in separate tables?
>
> --
> Aaron Bertrand
> SQL Server MVP
>
http://www.aspfaq.com/
>
>
> "Patrick" <xxx@xxx.xxx> wrote in message
> news:OcHKX6WIEHA.3556@TK2MSFTNGP10.phx.gbl...
> > Hi all.
> >
> > I use global.asa to create (Session_OnStart) and delete (Session_OnEnd)
> > tables in my Access database.
> >
> > To test it in Debug Mode in VS.NET 2003, i use a page that only contains
> > "Session.abandon" : Everything runs fine.
> >
> > But when i connect normally to the web app, the tables are created bur
> > never
> > deleted.
> > It looks like the Session_OnEnd event is never fired, neither with
> > "Session.Abandon" nor with the 20 minutes session timeout.
> >
> > Can someone help please ?
> >
> >
>
>