Lunarpages Web Hosting Forum

Author Topic: "Current Users" - Global.asa issue  (Read 2776 times)

Offline HarleyBlonde

  • Intergalactic Cowboy
  • *****
  • Posts: 51
    • http://sexy-harley.com
"Current Users" - Global.asa issue
« on: October 13, 2004, 09:33:15 AM »
I posted this in the ASP section and yet no reply.
Can anyone explain the problem with the "global.asa" file code that does not work on the LP servers?

The code is:
Code: [Select]

<script language="vbscript" runat="server">
Sub Application_OnStart
    Session.Timeout = 20
Application.Lock
       Application("WhosOn") = 0
    Application.UnLock
End Sub

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

Sub Session_OnEnd
Application.Lock
  Application("WhosOn") = Application("WhosOn") - 1
Application.UnLock
End Sub
</script>


I actually have to hide this file so that my pages will even load?

Thanks in advance, HarleyBlonde

Offline Nibbler

  • 21st century digital boy
  • Master Jedi
  • *****
  • Posts: 1168
    • Coppermine
"Current Users" - Global.asa issue
« Reply #1 on: October 13, 2004, 10:05:14 AM »
Just bump the original thread, no need to spam the forum.
Missing since 1983


Offline HarleyBlonde

  • Intergalactic Cowboy
  • *****
  • Posts: 51
    • http://sexy-harley.com
"Current Users" - Global.asa issue
« Reply #2 on: October 13, 2004, 10:10:07 AM »
Quote from: Nibbler
Just bump the original thread, no need to spam the forum.


Nibbler,

What does it mean to "bump" the orig thread? Like move it to the top again?

Sorry for my newbie moves, thou I am learning

Thanks, HB

Offline scanman20

  • Senior Moderator
  • Über Jedi
  • *****
  • Posts: 1556
    • http://www.notonebit.com
"Current Users" - Global.asa issue
« Reply #3 on: October 13, 2004, 10:14:47 AM »
Quote from: HarleyBlonde
Quote from: Nibbler
Just bump the original thread, no need to spam the forum.


Nibbler,

What does it mean to "bump" the orig thread? Like move it to the top again?

Sorry for my newbie moves, thou I am learning

Thanks, HB
Yup. Bump it back to the top.

With regard to the original question, perhaps it has something to do with the fact that ASP here isn't true ASP but rather ChiliSoft's ASP.
Even a broken clock is right twice a day.
NotOneBit.com
MCSE - MCSA - MCP (<- unused since 2006!)

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7479
    • Turner's Lounge
"Current Users" - Global.asa issue
« Reply #4 on: October 13, 2004, 10:29:44 AM »
Generally, if you just post a new message in the thread it will cause it to re-appear for the people that use the "view posts since last visit" option and it will cause the thread to be flagged as having a new message to help draw attention to it as well...
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.

Offline HarleyBlonde

  • Intergalactic Cowboy
  • *****
  • Posts: 51
    • http://sexy-harley.com
"Current Users" - Global.asa issue
« Reply #5 on: October 13, 2004, 11:28:22 AM »
[quote="scanman20With regard to the original question, perhaps it has something to do with the fact that ASP here isn't true ASP but rather ChiliSoft's ASP.[/quote]

Scanman,

There you go! I did see that chart showing the difference between the two, but didn't realize that it was displayed to show all of the ASP functions that really were "not" available to us at LP.

I have been a big fan of ASP and guess I have to move on now to PHP or what ever that is.

I will re-check that list and see if indeed that "Application:current users" is not offered in Chili's - ASP.

Thanks again, HB

Offline TranzNDance

  • Princess of Naboo
  • Berserker Poster
  • *****
  • Posts: 11567
    • Thu Tu's Blog
"Current Users" - Global.asa issue
« Reply #6 on: October 13, 2004, 12:35:55 PM »
hi,

I deleted the duplicate post in "Webdesign and HTML." The original post was appropriately placed in ASP. Although some questions are answered within minutes of posting, the way forums work, please expect to wait up to days, not hours for answers. All forum members are volunteers, so the response time is not guaranteed as it is with regular support.

Thank you. :)
:whip: :love: :whip: :love: :whip: :love: