<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013514" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013514</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078412</link>
    <description> &lt;p&gt;I made a little mistake, if you&#039;re going to schedule a job you don&#039;t need to use a stored procedure. Simply add a new job to the SQL Server Agent under Management and select cmdtext as type. Then paste in your sql code into the command window. Then just select the schedule it will run under. If you&#039;re on a shared SQL server I doubt you have access to the Management folder since giving everyone access to SQL Server Agent could be disasterous.&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Feb 2001 18:52:17 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078412 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078407</link>
    <description> &lt;p&gt;I am using SQL... I m not sure what version though...&lt;/p&gt;
&lt;p&gt;Acn you give me an example on how to do it please?&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Feb 2001 14:51:16 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1078407 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078405</link>
    <description> &lt;p&gt;What database platform? If you&#039;re using Microsoft SQL Server you can setup a stored procedure that deletes all the records from the table, and then use that stored procedure in a scheduled job to run every 24 hours. You can probably setup something similar on other platforms. If you can&#039;t do that, some hosting companies let you schedule ASP files to run.&lt;/p&gt;
 </description>
     <pubDate>Tue, 20 Feb 2001 13:39:58 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078405 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078377</link>
    <description> &lt;p&gt;I know that it might not be the best solution, but it might be nessesary...&lt;br /&gt;
I can just set it to check if the player is in the DB every time he is at one of the main pages... That wont be a major problem... I just put it in a n include file, that I allready have on all pages!&lt;/p&gt;
&lt;p&gt;I allso have to make a database delete itselves every 24 hours... How can I do that? The server is at brinkster.com so I don&#039;t know how much they support...&lt;/p&gt;
&lt;p&gt;Can you help me here?&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 17:02:33 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1078377 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078373</link>
    <description> &lt;p&gt;You can use a database to do that, but like I said before, since you don&#039;t know when they have left it&#039;s not going to be very accurate. Having the table refreshed every 15 minutes isn&#039;t really the answer, since that would wipe out members that may still be online. It&#039;s possible, but a lot of work and not very efficient.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 16:57:50 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078373 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078368</link>
    <description> &lt;p&gt;Can I set a database to like delete itselves every say 15 minnutes or so? Maybe just once a day (used for another purpose as well), If it cana be auto deleted, I can just make the users check if thehy are there every once in a while...&lt;/p&gt;
&lt;p&gt;Can you do that?&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 15:24:49 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1078368 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078367</link>
    <description> &lt;p&gt;Casper,&lt;/p&gt;
&lt;p&gt;It&#039;s not going to be reliable without the global.asa. Inside the global.asa there is a Session_OnEnd section that is used to clean up variables when a user&#039;s session ends.&lt;/p&gt;
&lt;p&gt;The only way around this would be to force the user to hit some kind of &quot;logout&quot; button before they leave, then you could clean up the variables that way.&lt;/p&gt;
&lt;p&gt;As for tracking who&#039;s online you could use the following:&lt;/p&gt;
&lt;p&gt;Application object:&lt;br /&gt;
Even though you don&#039;t have access to the global.asa file you can should still be able to use the application object. When a member logs in you set their name as &quot;active&quot; in the application variable, and &quot;inactive&quot; when they leave.&lt;/p&gt;
&lt;p&gt;Database:&lt;br /&gt;
Have a tracking table that stores who&#039;s online. When a member logs in you add their ID to the table, when they leave you delete it.&lt;/p&gt;
&lt;p&gt;File Object:&lt;br /&gt;
Have a text file that you write and delete from. When a user log&#039;s in you write a line with their name. When they leave you delete that line.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 15:13:15 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078367 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078366</link>
    <description> &lt;p&gt;well... The server that I am at, doesn&#039;t support global.asa &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt; How can I else do it? I have the membername in a variable, and it is allso stored in a session, so getting that probably wont have to be written in a lot of places - does it?&lt;/p&gt;
&lt;p&gt;New members are signing up all the time, so it should be able to be done automaticly; right now there is more than 300 members, but it is increasing soon...&lt;/p&gt;
&lt;p&gt;I hope that you can help me do this in another way!&lt;/p&gt;
&lt;p&gt;~Casper&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 14:57:48 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1078366 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/making-aplication-object#comment-1078365</link>
    <description> &lt;p&gt;Casper,&lt;/p&gt;
&lt;p&gt;The application object is exactly like the session object except that it is global (values are shared), whereas session values are for a specific session, application values are shared between sessions.&lt;/p&gt;
&lt;p&gt;To store member names in the application object you would have to setup some way to store them. If you have a list then you could enter that list into the application object onstart in the global.asa:&lt;/p&gt;
&lt;p&gt;Sub Application_OnStart&lt;br /&gt;
     Application(&quot;John_Smith&quot;)&lt;br /&gt;
     Application(&quot;Dave_Smith&quot;)&lt;br /&gt;
End Sub&lt;/p&gt;
&lt;p&gt;Then when you start a session/member login you access the application value for the member, so if John Smith logged in you would:&lt;/p&gt;
&lt;p&gt;Application(&quot;John_Smith&quot;) = 1&lt;/p&gt;
&lt;p&gt;1 could mean logged in. Then when that session expires/member logout you would:&lt;/p&gt;
&lt;p&gt;Application(&quot;John_Smith&quot;) = &quot;&quot;&lt;/p&gt;
&lt;p&gt;So to see which members are currently online you would just setup a loop to scan through all application member listing with values of 1.&lt;/p&gt;
&lt;p&gt;There are many alternate ways to doing this such as using a database, dictionary object, etc.&lt;/p&gt;
 </description>
     <pubDate>Mon, 19 Feb 2001 14:25:26 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1078365 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
